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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Modulus

A

X%Y = remainder in whole numbers after division

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Caesar Shift

A

Shift letters by a certain amount (e.g., 3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly