Added code for lecture 2026-11-10
This commit is contained in:
parent
5b630435ae
commit
07b9e54bf0
52 changed files with 1248 additions and 1 deletions
13
lecture20261110/listmethods/list01MethodAppend.py
Normal file
13
lecture20261110/listmethods/list01MethodAppend.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# https://www.w3schools.com/python/python_ref_list.asp
|
||||
# https://www.quackit.com/python/reference/python_3_list_methods.cfm
|
||||
|
||||
programMessage = '''
|
||||
This program appends a value to a list.
|
||||
'''
|
||||
print(programMessage)
|
||||
|
||||
basicList = [1, 34, 99, 87, 14]
|
||||
print(f"Before append {basicList}")
|
||||
basicList.append(104)
|
||||
print(f"After append {basicList}")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue