This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
""" | |
Concepts for this week: | |
1.Getting user input | |
2.Manipulating strings (a few ways) | |
""" | |
name =input("Enter your name: ") |
NewerOlder