Skip to content

Instantly share code, notes, and snippets.

"""
Lessons Learnt
Range command
Conditionals and Lists
"""
extent=int(input("Kindly enter a smaple number: "))
listbaba=range(1,extent+1) # range command is Powerfull!!
for item in listbaba:
"""
Lists
More conditionals (if statements)
"""
cap=int(input("Enter nummber to cap list: "))
listbaba = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
newlist=[]
for item in listbaba:
from datetime import datetime
"""
Concepts for this week:
1.Getting user input
2.Manipulating strings (a few ways)
"""
name =input("Enter your name: ")