American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro to Python – Gamas

June 8, 2023 @ 6:00 pm - 7:00 pm

Today We Did
  1. We reviewed page 84: 5-5
  2. We learned how to get an input from shell
Homework
  1. Create June8_InputFromShellHomework.py
  2. Do number 3 from https://www.ayclogic.com/list-inputs-if-and-else-loops-and-function/ . Make sure to use input from shell.
  3. Create a program that will do the following.
    1. You need to use if elif else and input from shell for this program.
    2. You need to ask user 2 things using Input from shell.
      1. What is your name
      2. What is your favorite color.
    3. You need to use if elif else to print the following
      1. if favorite color is green, then print “green is my favorite color too.”
      2. if favorite color is grey, then print “I do not like grey color.”
      3. if favorite color is everything else, then print “<person’s name> favorite color is <whatever color they enter>”
    4. If you do the code correctly below are some examples on how your program should work under different name and color inputs.
      1. Example 1
        1. What is your name: Joe
          Hi Joe, welcome to AYC Logic.
          
          What is your favorite color: green
          green is my favorite color too.
          
      2. Example 2
        1. What is your name: Kade 
          Hi Kade, welcome to AYC Logic. 
          
          What is your favorite color: yellow 
          Kade's favorite color is yellow.
      3. Example 3
        1. What is your name: Gamas 
          Hi Gamas, welcome to AYC Logic. 
          
          What is your favorite color: grey 
          I do not like grey color.
      4. Example 4
        1. What is your name: Leila
          Hi Leila, welcome to AYC Logic
          
          What is your favorite color: red
          Leila's favorite color is red

Details

Date:
June 8, 2023
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights