American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM Python Level 1

October 18, 2019 @ 6:00 pm - 7:00 pm

  1. We completed Hangman game.
  2.  Homework
    1. Below Python code is broken. Copy this into your Thonny and try to fix all the errors
          1. name = 'Brandon
            
            if Name == 'Brandon'
            print('You are cool'
            else:
                print('You are not cool')
            
            age = input('Give me a number? ')
            
            if age < 10:
            print('You are a kid')
            else:
            print('You are a teenager')
          2. If above code is fixed it will produce the following
          3. You are cool
            Give me a number? 8
            You are a kid
          4. You are cool
            Give me a number? 10
            You are a teenager
          5. You are cool
            Give me a number? -1
            You are a kid

Details

Date:
October 18, 2019
Time:
6:00 pm - 7:00 pm
Event Categories:
,