BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:American Young Coder
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:20181102T180000
DTEND;TZID=America/Los_Angeles:20181102T190000
DTSTAMP:20260501T110847
CREATED:20181103T043748Z
LAST-MODIFIED:20181106T044418Z
UID:417-1541181600-1541185200@www.ayclogic.com
SUMMARY:7PM Python Level 1
DESCRIPTION:We went over Homework October 19.py\nWe went over Homework Magic8Ball.py\nPython Quiz next week November 10\, 2018\n\nPlease study Last Quiz (3 weeks) ago.\nPlease study Homework October 19\nPlease study Homework Magic8Ball.py\nPlease study how to use List\, how to print element inside a List.\n\n\nSome exercises to prepare for the test\n\nExercise 1:\n\nCreate a function called “printSomething()”\n\nInside the function generate a random number between 1 to 4 and set/save it into variable called “randomNum”.\nIf computer pick number 1\, then print “Hi number one is cool.”\nIf computer pick number 2\, then print “Number two is cooler.”\nEverything else then print “<randomNum> is the best”.\nCall the function.\n\n\n\n\nExercise 2:\n\nCreate a python function name “subtractTwoNumbers” takes 2 parameters. Subtract 1st parameter with the 2nd parameter and return the value.\nCall the function and set/save return value to a variable call “result”.\nAnd then print “Result of subtraction is <whatever the result from the function>”\nFor example\, if I call the function like the following “subtractTwoNumbers(10\,2)” \, “result” variable will have a value of 8 and the print will print “Result of subtraction is 8”.\n\n\nExercise 3:\n\nCreate a function called “starwars”\, no parameter.\n\nCreate a variable with data type List of String call it “robots”.\nThe value of this”robots” variable is: “R2-D2”\, “C-3PO”\, “ASN-121”.\nprint each of these name using the list inside this function.\nCall this starwars function. When I call\, it will print the following from inside the function.\n\n\nR2-D2\nC-3PO\nASN-121\n\n\n\n\n\n\n\nExercise 4:\n\nCreate a function called “starwars2”. no parameter.\n\nCreate a variable with data type List of String call it “robots”.\nThe value of this “robots” variable is: “R2-D2”\, “C-3PO”\, “ASN-121”.\nGenerate a random number between 0 to 2 and set it into a variable called “idx”.\nUse this “idx” variable to print one of the elements inside the List. For example\, if “idx” is 0\, the function will then print “R2-D2”. If “idx” is 1\, then the function will print “C-3PO”.\n\n\n\n\nExercise 5:\n\nCreate a function called “starwars3”\, one parameter.\nCopy the code from “starwars2” function into “starwars3” function.\nInstead of just printing the robot name\, combine the robot name with the parameter.\nFor example\, if user call the function like the following\n\nstarwars3(" is the best")\n\nAnd if the computer pick random number 1\, then it will print\n\nC-3PO is the best
URL:https://www.ayclogic.com/event/7pm-python-level-1-3/
CATEGORIES:Python Class,Python Level 1
END:VEVENT
END:VCALENDAR