BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-ORIGINAL-URL:https://www.ayclogic.com
X-WR-CALDESC:Events for American Young Coder
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:20180311T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20181104T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20181027T180000
DTEND;TZID=America/Los_Angeles:20181027T190000
DTSTAMP:20260501T123258
CREATED:20181031T050206Z
LAST-MODIFIED:20181104T014649Z
UID:409-1540663200-1540666800@www.ayclogic.com
SUMMARY:6PM Python Level 1
DESCRIPTION:We went over last week homework: https://www.ayclogic.com/event/6pm-python-level-1-3/\n\nDoing for loop\nDoing While loop with break and if statement\n\n\nHomework\n\nWe are going to create a similar project like “Ask Gobo” project in the Scratch White book page 60 to 65.\nCreate a new python file call it “HomeworkOct27-Magic8Ball.py”\nOn top of the file put the following line “import random”\nCreate a while loop (like last week homework) which will do the following\n\nAsk user “Enter yes or no question.” and take user input and save/set user input into a variable called “userQuestion”.\nIf user input is “quit”\, print “Bye bye” and break from the While Loop.\nGenerate random number between 1 to 8\n\nto generate random number between 1 to 8 do the following “random.randrange(1\,8)” and save/set random number into variable called “randomNumber”.\n\n\nInside the while loop print to the screen according to “randomNumber”\n\nIf randomNumber is equal to 1\, print “It is certain.”\nIf randomNumber is equal to 2\, print “Most likely.”\nIf randomNumber is equal to 3\, print “Signs point to yes.”\nIf randomNumber is equal to 4\, print “I don’t so.”\nIf randomNumber is equal to 5\, print “Ask again later.”\nIf randomNumber is equal to 6\, print “Concentrate and ask again.”\nIf randomNumber is equal to 7\, print “Outlook not so good.”\nIf randomNumber is equal to 8\, print “My reply is no.”\n\n\nAfter printing the answer\, go back to Step 1 (Ask user “Enter yes or no question”) until user input “quit”.
URL:https://www.ayclogic.com/event/6pm-python-level-1-4/
CATEGORIES:Python Class,Python Level 1
END:VEVENT
END:VCALENDAR