Python Programming Flashcards
What is an integer?
A whole number.
What data type is this? ‘Hello’
String
What is definite iteration?
Repeating code that will repeat a set amount of times.
What is indefinite iteration?
A loop of code that will repeat for an unknown amount of time.
What is nested iteration?
Iteration inside of another loop.
What is validation?
A check completed to ensure the data entered is appropriate.
What is type casting?
Defining what data type the data is in a program.
What is concatenation?
Joining strings together.
What is robust programming?
A style of programming designed to handle unexpected errors.
What is a string?
A data type that is made up of characters and surrounded by speech marks in a program.
Name five data types
Float/Real, Integer, String, Character, Boolean
Give an example of concatenation
name = input(‘What is your name?’)
print(‘Hi’ + name + ‘my name is Heesha.’)
What is a variable?
Storage in which one piece of data is saved and can be changed.
What are the two types of variables?
Program defined and user defined.
what will the following method display as an output?
.upper()
A string will be printed with all of the letters in uppercase.