Created by Josh Watkins
over 7 years ago
|
||
Question | Answer |
Definition of Variable | A variable is a value that can change, depending on conditions or on information passed to the program. |
Definition of Constant | A constant is a value that cannot be altered by the program during normal execution |
list = [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 |
Five different data types | Boolean - True or False Integer - Whole number String - Series of characters Character - Any ASCII character Real - Whole numbers, rational numbers, irrational numbers |
Want to create your own Flashcards for free with GoConqr? Learn more.