Start date :- 28/04/2021 End date :- 11/05/2021
PYTHON QUIZ 4..
____________________________________________________________________________________________________
Q.1. How do you declare a dictionary in python ?
ANSWER :- (2) A Dictionary in python is declared by enclosing a comma-separated list of key-value pairs using curly braces thus 2 option is correct.
____________________________________________________________________________________________________
Q.2. What will be the output of the following code:
dict = { x:x for x in range(1,2) }
print(dict)
age = input (“Please enter your age”)
int =5
while int <=-1:
print (int)
int = int -1
__________________________________________________________________________________________________
only at : - hi-tutorial.blogspot.com
_____________________________________________________________________________________________________
Thanks..
ReplyDelete