American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

SAT – 9 AM – Indo – Intro to Python – Joel

April 27 @ 9:00 am - 10:00 am

Today we did:
  1. We learned a methodical approach for solving errors, and did a couple of exercises.
Homework:
  1. Create a new file called April27_FunctionsExercise and do the exercises from here: https://www.ayclogic.com/intro-to-python/star-wars-problem/
  2. Continue in the April27_FixErrors2 file or create it if you haven’t, and fix the following code below:
  3. budget1 = 50 * 5
    # budget1 250
    print (“budget1″ + ” ” + str(budget1))

    abigail = 11
    ryan = 10

    budget2 = 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

Details

Date:
April 27
Time:
9:00 am - 10:00 am
Verified by MonsterInsights