Introduction to Python: Difference between revisions
Jump to navigation
Jump to search
(Created page with "This page highlights an approach to rapid on-boarding in Python programming. Sample files with a few concepts are presented. Participants type in the files and then examine...") |
(No difference)
|
Revision as of 00:42, 30 November 2019
This page highlights an approach to rapid on-boarding in Python programming. Sample files with a few concepts are presented. Participants type in the files and then examine the behaviour of the resulting programs, learning the effect of a few Python keywords each step.
<SyntaxHighlight lang="Python" line='line'>
- Quiz Program
answer = input("What is the capital city of Guyana?") if answer == "Georgetown":
print("Good answer")
elif answer == "GT":
print("Ok. We will accept that")
else:
print("What kind of an answer is that?")
</SyntaxHighlight>