We all are BiTs

#python
Channel
Logo of the Telegram channel We all are BiTs
@WearebiTsPromote
422
subscribers
1.19K
photos
93
videos
766
links
all about 0 & 1 : Twitter : @NavidDariya
Python Question / Quiz;

What is the output of the following Python code, and why? 🤔🚀 Comment your answers in this Group: https://t.me/+vHq2KHlW8AljNTc0

#python #programming #developer #morioh #programmer #coding #coder #webdeveloper #webdevelopment #pythonprogramming #pythonquiz #machinelearning

Source: X
What is your favorite #Python web framework?

@WearebiTs
#Python Pop Quiz 🐍

What is the output of the following code?
@WearebiTs
A) [((1, 2),), ((3, 4),), ((5, 6),)]
B) [(1, 3, 5), (2, 4, 6)]
C) [(1, 2, 3, 4, 5, 6)]
D) None of the above
Forwarded from DLeX: AI Python
python2python3.pdf
668.2 KB
تفاوت کد ها در پایتون 2 و 3
#python
🆔 @ai_python
@WearebiTs

There's some new #Python syntax being debated in PEP 736 – Shorthand syntax for keyword arguments at invocation

What do you think?
Have you ever used the slice() function in #Python?

It's a handy way to represent a set of indices. 🐍🚀

Here's an example.

@WearebiTs
#Python Pop Quiz 🐍

What is the output when you run this code in the REPL?
@WearebiTs
A) True
B) False
C) Syntax Error
D) None of the above
#Python Pop Quiz 🐍
@WearebiTs
What is the output of this crazy code?

A) SyntaxError
B) *******************Python
C) Python*******************
D) *********Python**********
#Python Pop Quiz 🐍

What is the output of the following code?

A) [True, True, True, True]
B) [True, False, False, True]
C) [False, True, False, True]
D) [False, True, True, False]
#Python Pop Quiz 🐍

What does the following code print out?

A) Some kind of exception is raised
B) [(1, 'a'), (2, 'b'), (3, 'c')]
C) [(1, 'a'), (2, 'b'), (3, 'c'), (4, ''), (5, '')]
D) [(1, 'a'), (2, 'b'), (3, 'c'), (4, 'a'), (5, 'b')]
#Python Pop Quiz 🐍

What do you use to turn the amount() method into an attribute?

A)
@staticmethod

B)
@classmethod

C)
@property

D) None of the above
#Python Pop Quiz 🐍

Does the following print True or False?
#Python Pop Quiz 🐍

What is the length that is returned?

A) 0
B) 1
C) 2
D) None of the above
#Python Pop Quiz 🐍

What is the output of the following code?

A) Python
B) Python rocks!
C) Python rocks! Python
D) Pythonrocks! Python
#Python Pop Quiz 🐍

What is the output of the following code?

A) 5
B) 0
C) 4
D) 3
in #Python :
bool, or boolean: a type to represent logical values. Can only be True or False (the capitalization is important!).
29 common beginner Python errors on one page. Via http://imgur.com/WRuJV6r #Python #Programming #Sysadmin
29 خطای رایج پایتون در 1 صفحه