C859 Python Syntax 2023
C859 Python Syntax 2023 var1, var2, var3 = 1, 2, 3 - ANSWER multiple variable assignment 12 - ANSWER integer 1.2 - ANSWER float 'twelve' - ANSWER string "twelve" - ANSWER string True or False - ANSWER Boolean value type() - ANSWER determines type of an object (integer, boolean, etc) int() - ANSWER converts to integer object float() - ANSWER converts to float object str() - ANSWER converts to string object print() - ANSWER displays a message + - ANSWER addition (integer) or concatenation (string) - - ANSWER subtraction ** - ANSWER power of % - ANSWER modulus, remainder
Document information
- Uploaded on
- September 9, 2023
- Number of pages
- 8
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers