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:20181130T180000
DTEND;TZID=America/Los_Angeles:20181130T190000
DTSTAMP:20260501T093724
CREATED:20181202T004942Z
LAST-MODIFIED:20181202T004942Z
UID:516-1543600800-1543604400@www.ayclogic.com
SUMMARY:7PM Python Level 1
DESCRIPTION:We went over the Stary Night homework.\nWe completed Stary Night project from page 90 to 96.\n\nWe learned the difference between “random.randrange” and “random.randint”.\nWe learned how to choose random element inside a list using random index and random.choice.\nWe learned how to create star in the Stary Night project by clicking.\n\n\nHomeworks:\n\nCreate a python file call it “MegaRandom.py”\n\nCreate a variable data type is list of string call it “gospel” and the value would be “Matthew”\, “Mark”\, “Luke”\, “John”.\nCreate a function call it “giveMeRandomGospel1” with no parameter.\n\nIn this function return a random element from list “gospel”. Use “random.randrint” to select a random element from the list.\nCall this function and concatenate the result with “Random gospel1 = ” and print the result to the screen.\n\nFor example\, the result could be something like the following if you call the function twice and print the result twice\n\nRandom gospel1 = Mark\nRandom gospel1 = John\n\n\n\n\n\nCreate a function call it “giveMeRandomGospel2” with no parameter.\n\nIn this function return a random element from list “gospel”. DO NOT use “random.randint” to select a random element from the list. Look at previous class to see which other random function you can use to select random element from list.\nCall this function and concatenate the result with “Random gospel2 = ” and print the result to the screen.\n\nFor example\, the result could be something like the following if you call the function twice and print the result twice\n\nRandom gospel2 = Mark\nRandom gospel2 = John\n\n\n\n\n\n\n\nModify the previous homework file “stary_night.py” to do the following\n\nCreate a new function call it “draw_planet” with 4 parameters: size\, color\, x\, y.\nLook at page 97 on how to create “draw_planet” function. Inside the book the size of the circle is always 50. Modify the size of the circle to be according to parameter size.\nIn the project\, inside the loop which creates the random stars\, modify the code so it will do the following\n\nIF random.randint(1\,2) == 1 call “draw_planet” function  ELSE call “draw_star” function.
URL:https://www.ayclogic.com/event/7pm-python-level-1-5/
CATEGORIES:Python Class,Python Level 1
END:VEVENT
END:VCALENDAR