Python Programming Flashcards
What is a variable?
A place to store data that can change, such as integers or strings.
What is type casting?
Setting the data type to another data type.
What does input mean?
Input means to put data into a code.
What does process mean?
Process means the actions that take place with the data.
What does output mean?
An output is what you get from the data/ how the data is displayed.
Write an example of output.
Print()
Write an example of input.
Input()
What is the symbol for multiplication?
*
What is the symbol for division?
/
What is the purpose of the Turing test?
To test how human like AI can actually get.
What is the name for adding a string and variable together?
Concatenation.
What does .strip() do
Removes the spaces at the start and end.
What does len() do?
Finds out the length of the string .
What does [] mean?
Position.
What is this data type? “Deven577”
String
What is this data type? 577
Integer
What is this data type? 5.77
Real/Float
What is this data type? false
Boolean
What is “equal to” in python?
==
What is “not equal to” in python?
!=
What is “greater than” in python?
>
What is “less than” in python?
What is “greater than or equal to” in python?
> =
What is “less than or equal to” in python?
<=
What is iteration?
Loop that repeats the code linked to it.
What is definite iteration?
Loop that repeats for a number amount of times.
What is indefinite iteration?
A loop that repeats the program for an undetermined time.
What is authentication?
Prove something is what it needs to be.
What is validation?
Checking data that has been entered.
What is an example of indefinite iteration?
While
What is an example of definite iteration?
For