WorksheetsPYTHON DAY 2
Total questions: 12
Worksheet time: 7mins
Python is invented by
Guido van Rossum
Dennis Richie
Montly Python
BBC
What is indentation in python?
The group of keywords
Displaying the output
Its is a function
The group of statements belongs to a particular block of code
Which statement is used to print text to the output console?
echo
printf
Print Hello World!
(a)
What is a variable?
A number
A message input by the user
A location in memory that we use to store data
A printout that show answer that user entered
What symbol is used in python to assign values to a variable?
*
=
==
-
Which functions are used to accept input from the user?
input()
raw_input()
rawinput()
Input
Which is a data type that can only be true or false?
string
boolean
int
float
For variable declaration, Names can begin with a digit.
True
False
>>>type(77.7)
int
float
decimal
number
Find the type of a = "True"
Boolean
String
Integer
Float
a=21
b=6
print(a/b)
print(a//b)
3.5
3
3
3.5
