Font size
Worksheetspython String and comment
Total questions: 13
Worksheet time: 7mins
What is a variable?
a vaible answer
something you want the computer to remember
python
syntax error
My_name = "Awesome"
My_name in this string is...
a variable
syntax
my name
prompt
in Python what is the addistion sign?
=
+
^
"
a # in Python means the user is trying to...
hashtag
ratio
comment
tic-tac-toe
what is a string in Python?
a long piece of woven material
text, or keyboard characters
something that ties words together
yarn
How To Write Comment on Python ?
Comments starts with a # for one line
Start and End with (triple quotes) for multiline Comments
Comments starts with a // for one line
Comments starts with a ' for one line
This is Sample of ?
Multi Line Comment
Single Line Comment
Number Value
String Value
What will the output be from the following Python code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)
The correct syntax for converting the string x to uppercase is :
X.upper()
upper(x)
x.UPPER[ ]
x.upper()
The correct syntax for converting the string myname to lowercase is :
myNAME.lower[ ]
myname.lower( )
myname.upper( )
myname_lower(12 )
Let x= "Python", the output of print(x.upper()) is
python
PYTHON
_PYTHON
"PYTHON"
