Flashcards
Programming Flashcards
Flashcards do conjunto (5)
- 1Definition of VariableA variable is a value that can change, depending on conditions or on information passed to the program.
- 2Definition of ConstantA constant is a value that cannot be altered by the program during normal execution
- 3list = [ans1, ans2, ans3, ans4, ans5] var = int(input()) if var == 0: print(ans1, ans3) var = 4 IDENTIFY THE VARIABLES AND CONSTANTS'list' is a constant
'var' is a variable - 4Five different data typesBoolean - True or False
Integer - Whole number
String - Series of characters
Character - Any ASCII character
Real - Whole numbers, rational numbers, irrational numbers - 5—