Programming languages quiz and learning
157 subscribers
2 photos
3 files
This is the channel for begginers
This best place to start the programming. Get ready set go.
From zero to hero
Download Telegram
What is th result of this code :-
x = 1
while x <= 10: print(x) x = x + 1
Anonymous Quiz
52%
counting till 10
22%
Baackcount till 10
12%
None of these above
14%
Only printing 10
Which is the representator of def
Anonymous Quiz
35%
class
29%
lambda
24%
self
12%
None of these
What is the output of these code :-
bin(1)
Anonymous Quiz
61%
01
16%
0b01
20%
0000101
2%
1623
What the output of this code;-
A = 7
del A A = 2 print(A)
Anonymous Quiz
29%
7
38%
2
19%
9
15%
None of these above
Task - make a program that if the password is correct then write welcome or on incorrect paasword print alert!

Hint 1 - use def statement
Hint 2 - use input function
This media is not supported in your browser
VIEW IN TELEGRAM
See it and understand some class basics
The answer is intializine it
Intiazine it mean that you can access that method from outside the class
Any one who has completed the task please share screenshot with it
This media is not supported in your browser
VIEW IN TELEGRAM
Task 1 answer
Blue colour is correct
Yellow one is wrong