By: Aboubakr Soultan
By: Aboubakr Soultan
By: Aboubakr Soultan
Which command
2 print "Hello world!"
will display the
text 'Hello
world!' on the 3 print("Hello world!")
screen?
• if x > 20:
• if x <> 20:
• if x == 20:
• if x < 20:
x = "Hello"
x <> "Hello"
A piece of data that can change
A special file
What does input do?
Float
what data
type is 3.95? String
Character
What would the output of this code
be if the user entered the value 70?
1. Pass
2. Fail
3. Merit
4. Distinction
A whole number
Which best
A number that can have a decimal
describes the
types of data a
string variable Either true or false
can hold?
• 22
• 50
• Nothing, it won't run due to errors in the code
• 38
Which operator means not equal to
== != >= <=
Integer
What sort of
Data Type is
Float String
the following
value: 23.45?
Boolean
Closes the program
IF statement
do? Makes a copy of the code
Makes a coffee
Theories
Strings
What are
these? ==, !=,
<, >, <=, >= Boolean Operators
Comparison Operators
Input
What function If
do you use to
display output
on the screen? Print
Show
The data type for text is:
/ * ** \
Which one of these is the symbol for
MULTIPLY?
X * ** ^
I want to force • age = int("What is your age?")
• int = age(input("What is your age?")
the user to input
• age = ("What is your age?)
a number for an • age = input("What is your age?")
age. Which
answer is correct?
Which of the following would you use to ask
the user for their name and store it?
none of
input print int
these
Integer
Boolean
What do we
call decimals
in Python String
Float
What symbols do we use for not equals?