16 terms

Python Programming - Chapters 1 to 4

STUDY
PLAY
IDLE
Python's Integrated DeveLopment Environment, a program that lets you write code, test and debug, all in the one place.
Monty Python
A British surreal comedy group after which Python was named.
=
assignment operator
<variable> = <expression>
assignment statement
import <module>
loads an existing Python module into the current program
block
one of more lines of code grouped together with the same minimum amount of indentation
while <condition>:
begins a pre-test loop
if <condition>:
begins a binary selection statement
break
tells the program to immediately jump out of a while-block
random.randint(low, high)
returns a random integer between (and including) the two integers we give it
int(string)
converts the string argument to its integer form.
str(number)
converts a numeric argument to its string form.
true
the Boolean data value for yes/on/one
false
the Boolean data value for no/off/zero
==
the comparison operator for equality. Used in conditions, "Is value1 equal to value2?"
input()
a function that takes user keyboard input and returns it to the program as a string.