Python Flashcards
1
Q
IDE (Integrated Development Environment)
A
Special type of editor used for writing, editing, and saving python programs
Like a word processor but has lots of features to help programmers write and edit programs efficiently
Example = Thonny, IDLE
2
Q
Advantages of Python
A
Very concise, a little code can do a lot
Can be used on many different types of computers
“Open Source”, costs nothing to download and distributed all over the Internet
3
Q
Types of Variables • Integer (int) = • Float (float) = • String (str) = • Boolean (bool) =
A
Whole Numbers
Decimal Numbers
Text, Collections of Characters
True or False
4
Q
Modulus
A
X%Y = remainder in whole numbers after division
5
Q
ASCII (American Standard Code for Information Interchange)
A
Contains all upper and lowercase characters, numbers, and most other characters A bit can be either 1 or 0 (8 bits is a byte) The ASCII code for a character usually consists of one byte Example = A is 65 (0100 0001) Function ord () shows ASCII value Uses binary numbers to represent characters, then binary numbers are converted to decimal integers and then assigned to characters
6
Q
Caesar Shift
A
Shift letters by a certain amount (e.g., 3)