What will be the result of the following Python 3 statement? temperature = "3" + "5" - correct answer
✔✔' 35 '
What will be the output of the following code in Python 3?
number = 6
number = number + 4
lucky_number = 10 * number
print(lucky_number/number) - correct answer ✔✔10
What is the output of the following code in Python 3?
print("Ozymandius"[2:4]) - correct answer ✔✔ym
What is the output of the following code in Python 3?
print(5>= 5) - correct answer ✔✔True
What is the output of the following code in Python 3?
animals = ["mammal","reptile","insect","fish"]
animals.insert(3,"bird")
print(animals) - correct answer ✔✔['mammal','reptile','insect','bird','fish']
What is the output of the following code in Python 3?
, print(17%5) - correct answer ✔✔2
Which of the following Python 3 instructions will produce the output Hello World?
Print("Hello World")
print "Hello World"
print "Hello World"
print("Hello World") - correct answer ✔✔print("Hello World")
What character(s) is used at the start of a line in Python to indicate that what follows should be treated
as a comment? - correct answer ✔✔#
Which of the following is a type in Python?
int
bool
list
All of the above - correct answer ✔✔All of the above
A fragment of code that causes a data type to be evaluated? - correct answer ✔✔Expression
A single unit of code that the Python interpreter can execute? - correct answer ✔✔Statement
What is the output of the following code in Python 3?
print(1 and 0) - correct answer ✔✔0
If we have just 1 + 1 what are the outcome in command prompt (Shell Mode) and script? - correct
answer ✔✔2 and *blank*