PYTHON QUIZ ANSWER WEEK 3 PRUTOR 😉😉
WELCOME GUYS TO MY BLOG
Q:1. If :-
A=set('python')
B=set('programming')
Then what will be the output of print(A-B) ?
Note :- The Order of output may change.
ANSWER 3. {'h', 'y', 't'}
Q:2. What will be the outcome of the following code?
count=40
print(count>=30 and count<39)
ANSWER 2. FALSE
Q:3. If we have a list as :-
names=['abhay', 'mahesh', 'prashant', 'sandeep'] , then what does the following statement do:
'rakesh' in names
ANSWER 1.checks if ‘rakesh’ is there in names
Q:4. What will be the output of the following code?
print( (3 < 1) and (4/0 > 1))
ANSWER 1, FALSE
Q:5. In Python 'And' and 'Or' operators are also called:
ANSWER 2.Logical operators
GUYS PLEASE DO NOT COPY PASTE MY REASON TYPE THAT FROM MINE OTHERWISE IT WILL NOT GOING TO SAVE YOUR ANSWER.
Comments
Post a Comment