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:20250309T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20251102T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20250810T170000
DTEND;TZID=America/Los_Angeles:20250810T180000
DTSTAMP:20260514T204443
CREATED:20250811T005706Z
LAST-MODIFIED:20250811T005706Z
UID:30035-1754845200-1754848800@www.ayclogic.com
SUMMARY:5 PM - Python OOP - Gamas
DESCRIPTION:Today We Did\n\nWe reviewed For Loop and While Loop.\n\nHomework\n\nThis is how you convert from String to Integer\n\n\ntext = "20"\ntext = int(text)\n\n\n\nAll input from shell is a String data type.\n\nFor example:\n\ntime = input("What time is it: ")\n\n\n\nWhen do you need to convert from String to Integer?\n\nWhen you need to do mathematical operations like addition\, substraction\, multiplication and division.\nOr when you want to check if something is greater than or less than.\n\nExample:\n\nToday’s coding where we check when it is morning\, afternoon or evening.\n\nmorning : time < 12\nlunch time : time == 12\nafternoon : time > 12 and tiem < 18\nevening: time > 18\n\n\n\n\n\n\n\n\nIf you are asking question to user (via shell) and the answer does not require a number\, then you do not need to convert to Integer\n\n\nname = input("What is your name: ")\n\n\n\nMemorize and try to understand below codes\n\n# print Hello John 45 times\n# ASK USER to "enter a number"\n# Enter a number: 5\n# print Hello John 5 times\nnumber = input("Enter a number: ")\nnumber = int(number)\nfor i in range(number):\n    print("Hello John")\n\n\n# continuously ask user what time is it?\n# if user enter 12 then say "It is time to eat lunch" and then break\n# if user enter number below 12\, then say "It is morning" just continue\n# if user enter number above 12\, then say "It is afternoon" and\n# if user enter number above 18\, then say "It is evening"\n# if user enter number below 0 or above 23 then say\, "Invalid input"\nwhile True:\n    time = input("What time is it: ")\n    time = int(time)\n    if time < 0 or time > 23:\n        print("Invalid input")\n    elif time < 12:\n        print("It is morning")\n    elif time == 12:\n            print("It's time to eat lunch")\n            break\n    elif time > 12 and time < 18:\n        print("It is afternoon")\n    elif time > 18:\n        print("It is evening")
URL:https://www.ayclogic.com/event/5-pm-python-oop-gamas-5/
END:VEVENT
END:VCALENDAR