Computer Dept-Gr.7-2nd Trimester-Revision Sheet
Computer Dept-Gr.7-2nd Trimester-Revision Sheet
Practical Part:
Q.1: Convert a block in scratch to a command in Python, then:
# Question Answer
a) name =
input("what is
2 a) name = input("what is your name? ")
your name?
b) print = input("what is your name? ")
")
c) name = output("what is your name? ")
a) tell("hello") c)
3
b) say("hello") print("hello")
c) print("hello")
a) print ("your
password is",
4 a) print ("your password is", password) password)
b) print = input("your password is")
c) PRINT ("your password is ")
a)total =
number 1 +
5 a)total = number 1 + number 2 number 2
b)total = "number 1" + "number 2"
c)total = (number 1) + (number 2)