- This event has passed.
SAT – 9 AM – Indo – Intro to Python – Joel
April 27 @ 9:00 am - 10:00 am
Today we did:
- We learned a methodical approach for solving errors, and did a couple of exercises.
Homework:
- Create a new file called April27_FunctionsExercise and do the exercises from here: https://www.ayclogic.com/intro-to-python/star-wars-problem/
- Continue in the April27_FixErrors2 file or create it if you haven’t, and fix the following code below:
- budget1 = 50 * 5
# budget1 250
print (“budget1″ + ” ” + str(budget1))abigail = 11
ryan = 10budget2 = abigail * Ryan
print (“budget2 “+budget2)hot_day = “20”< 15
print (hot_day)if hot_day == True:
print(“It is really hot out there”)
else:
print(“It is cool out there”)print(“I live in “+ hometown)
hometown = “Moscow”
def greeting(first_name, last_name):
print(“Hello {first_name} {last_name}”)greeting(“Gamas”)
#If you are able to fix all the problems,
#the program will print the following:# budget1 250
# budget2 110
# False
# It is cool out there
# I live in Moscow
# Hello Gamas Chang