
你可能會喜歡
#Python Pop Quiz 🐍❓ What's in the `b` variable? A) 2 B) [2, 3, 4, 5] C) [2, 3, 4] D) What is this madness?
![TeachMePy's tweet image. #Python Pop Quiz 🐍❓
What's in the `b` variable?
A) 2
B) [2, 3, 4, 5]
C) [2, 3, 4]
D) What is this madness?](https://pbs.twimg.com/media/F4QmUj3XgAA7sfe.jpg)
#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')]
![TeachMePy's tweet image. #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')]](https://pbs.twimg.com/media/F4LYwagW8AA0Syo.jpg)
#Python Pop Quiz 🐍❓ What does the `my_list` look like after this code runs? A) [] B) [1, 3, 5] C) [2, 4, 6] D) An IndexError is raised
![TeachMePy's tweet image. #Python Pop Quiz 🐍❓
What does the `my_list` look like after this code runs?
A) []
B) [1, 3, 5]
C) [2, 4, 6]
D) An IndexError is raised](https://pbs.twimg.com/media/F3xakDJXIAAiPlX.jpg)
#Python Pop Quiz 🐍❓ What does the following code print out, if anything? A) An exception B) 1 C) 2 D) 3 E) None of the above

#Python Pop Quiz 🐍❓ What will be the output if you run this code? A) integers_found = 2 bools_found = 3 B) integers_found = 5 bools_found = 2 C) integers_found = 5 bools_found = 0 D) integers_found = 5 bools_found = 5

#Python Pop Quiz 🐍❓ What will be the output if you run this code? A) 'a, b, c' B) 'c, b, a' C) '' D) 'b, a, c'

#Python Pop Quiz 🐍❓ What will be the output if you run this code? A) {range} B) (range) C) [0, 1, 2] D) (0, 1, 2) E) {0, 1, 2}
![TeachMePy's tweet image. #Python Pop Quiz 🐍❓
What will be the output if you run this code?
A) {range}
B) (range)
C) [0, 1, 2]
D) (0, 1, 2)
E) {0, 1, 2}](https://pbs.twimg.com/media/F3Nv9_tWUAA8bCo.jpg)
#Python Pop Quiz 🐍❓ What is the value of `NOT_FOUND` at the end of this code? A) NameError B) None C) 200 D) 0

#Python Pop Quiz 🐍❓ Which string method do you use to get the expected output? A) upper() B) casefold() C) swapcase() D) caseswitch()

#Python Pop Quiz 🐍❓ What is the output of this crazy code? A) SyntaxError B) RuntimeError C) 2 D) 1 + 1 E) None of the above

Don't miss episode number NINE of The Python Show podcast with @driscollis This week's episode features Al Sweigart @AlSweigart author of Automating the Boring Stuff with Python and many other books! 🐍 pythonshow.com/p/09-automatio…
pythonshow.com
09 - Automation and Python with Al Sweigart
In today’s episode, we have a special guest: Al Sweigart.
#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 🐍❓ What is the output of this code? A) SyntaxError B) True C) False D) None

#Python Pop Quiz 🐍❓ What is the output of the following code? A) True B) False C) SyntaxError D) None of the above

The latest edition of my Python Papers Newsletter is out now! Learn the basics of #Python sets! pythonpapers.com/p/python-101-l…
pythonpapers.com
Python 101 - Learning About Sets
A set data type is defined as an "unordered collection of distinct hashable objects" according to the Python 3 documentation.
#Python Pop Quiz 🐍❓ What is the output of the last line in this REPL session? A) 'blue' B) SyntaxError C) AttributeError D) None of the above

#Python Pop Quiz 🐍❓ What is the output of the following code? A) Py.py = 7 Cy.py = 3.14 Vy.py = 7 B) = 7 = 3.14 = 1 C) None of the above

#Python Pop Quiz 🐍❓ What does this code print out in Python 3.9+? A) SyntaxError B) bark bark! None C) bark bark! D) None of the above

#Python Pop Quiz 🐍❓ What is the output of this crazy code? A) [[0, 0, 0], [0, 0, 0], [0, 0, 0]] B) [['python', 0, 0], ['python', 0, 0], ['python', 0, 0]] C) [[0, 'python', 0], [0, 'python', 0], [0, 'python', 0]] D) What the heck!?
![TeachMePy's tweet image. #Python Pop Quiz 🐍❓
What is the output of this crazy code?
A) [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
B) [['python', 0, 0], ['python', 0, 0], ['python', 0, 0]]
C) [[0, 'python', 0], [0, 'python', 0], [0, 'python', 0]]
D) What the heck!?](https://pbs.twimg.com/media/F1pT8KxWAAEtKHT.jpg)
#Python Pop Quiz 🐍❓ What is the output of the following code? A) SyntaxError B) None C) Ellipsis D) None of the above

United States 趨勢
- 1. Bills 107K posts
- 2. Falcons 28.2K posts
- 3. phil 125K posts
- 4. Josh Allen 12.3K posts
- 5. Bijan 17.3K posts
- 6. Drake London 4,956 posts
- 7. Chris Moore 1,744 posts
- 8. Bears 45.3K posts
- 9. Dan Quinn N/A
- 10. McDermott 3,822 posts
- 11. #NLCS 5,015 posts
- 12. #RaiseHail 4,755 posts
- 13. Caleb 30.6K posts
- 14. Jayden 11.7K posts
- 15. Commanders 30K posts
- 16. phan 91.9K posts
- 17. Beane 1,860 posts
- 18. #BUFvsATL 2,736 posts
- 19. Sal Frelick N/A
- 20. Teoscar N/A
你可能會喜歡
-
Pydantic
@pydantic -
poetical photos.
@poeticalphotos -
Benjamin Bennett Alexander
@RealBenjizo -
Mike Driscoll
@driscollis -
Akshay 🚀
@akshay_pachaar -
Coding Computing Coach
@CodingComputing -
Khalil Afridi
@khalilApriday -
Python Space
@python_spaces -
Mouse Vs Python
@mousevspython -
Mısra Turp
@misraturp -
Python Developer
@Python_Dv -
Michael Kennedy
@mkennedy -
Patrick Loeber
@patloeber -
Rampal Punia 🚀
@rs_punia_ -
Daily Python Tip 🐍🐧
@python_tip
Something went wrong.
Something went wrong.