Computing: Python Flashcards
What is syntax?
Syntax, in a nutshell, is the grammar of computers.
Name one program you can use python on.
iDLe
What is the difference between strings and integers.
Strings are small pieces of text while integers are numbers.
Which of the following does not retain a condition to run the code?
a) If
b) else if -elif-
c) else.
C
What is created once an ‘If’ statement is implemented into code?
A branch
What does != mean as an operator in code?
Not equal to.
What does < mean in code?
Less than
What does > mean in code?
Greater than.
What does == mean?
Equal to.
Name the two data types.
Integers
Strings
What does the hash symbol indicate a line of text is?
A comment; something that the program ignores entirely and is purely there so others can understand the code.
What does ** mean?
To the power of.
What does % mean?
It indicates to the program to give a remainder of a division.
How do you show the output of the addition of two numbers?
print(“Sum of two numbers: “,num1+num2”)
How do you show the output of the addition of two numbers?
print(“Sum of two numbers: “,num1+num2”)