- This event has passed.
6PM Python Level 1
January 26, 2019 @ 6:00 pm - 7:00 pm
- We went over Python Level 1 Quiz.
- Homeworks:
- Create a program (making_decisions_jan_26.py) that will do the following:
- Ask user “Give me your age? “
- If the user enters 0 print “You are a newborn baby”.
- If the user enters any number smaller than 4 then print “You are a toddler”.
- If the user enters any number smaller than 13 then print “You are a kid”.
- If the user enters any number smaller than 20 then print “You are a teenager”.
- If the user enters any number smaller than 40 then print “You are an adult”.
- If the user enters any number greater than 40 then print “Dude!! You are old.”.
- Create a function that takes 2 numbers and adds them together and returns the result. Print the return result to the screen.
- Create a function that takes three parameters (param1, param2, param3). Combine them into one string and print the combined string inside the function.
- Fix below broken code
-
-
firstName = 'John' lastName = 'Smith' print(firstName+' '+lastname)
-
if number > 20 print('Small number' else print('Big number')
-
-
- Create a program (making_decisions_jan_26.py) that will do the following: