Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python_course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
teaching
Python_course
Wiki
intro
Changes
Page history
New page
Templates
Clone repository
Created intro (markdown)
authored
7 years ago
by
Jens Hahn
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
intro.md
+13
-0
13 additions, 0 deletions
intro.md
with
13 additions
and
0 deletions
intro.md
0 → 100644
View page @
af4be3b3
### Work with list objects in Python
Assign an empty list to a variable
**a**
```
python
a
=
[]
```
Append the
*float*
object
```3.0```
to this list
```
python
a
.
append
(
3.0
)
```
This result is a list object
**a**
which has the length
```1```
and contains only the number
```3.0```
This diff is collapsed.
Click to expand it.