Teach Me Python

169 posts

Teach Me Python banner
Teach Me Python

Teach Me Python

@TeachMePy

Teaching Python to Everyone

Iowa Beigetreten Eylül 2022
15 Folgt3K Follower
Teach Me Python
Teach Me Python@TeachMePy·
#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?
Teach Me Python tweet media
English
11
6
25
3K
Teach Me Python
Teach Me Python@TeachMePy·
#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')]
Teach Me Python tweet media
English
3
3
9
1.5K
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
3
0
10
1.7K
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
1
0
8
1.1K
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
4
0
7
890
Teach Me Python
Teach Me Python@TeachMePy·
#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'
Teach Me Python tweet media
English
6
0
7
1.1K
Teach Me Python
Teach Me Python@TeachMePy·
#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}
Teach Me Python tweet media
English
4
0
6
1.2K
Teach Me Python
Teach Me Python@TeachMePy·
#Python Pop Quiz 🐍❓ What is the value of `NOT_FOUND` at the end of this code? A) NameError B) None C) 200 D) 0
Teach Me Python tweet media
English
2
1
5
855
Teach Me Python
Teach Me Python@TeachMePy·
#Python Pop Quiz 🐍❓ Which string method do you use to get the expected output? A) upper() B) casefold() C) swapcase() D) caseswitch()
Teach Me Python tweet media
English
2
0
7
888
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
5
1
12
6K
Teach Me Python
Teach Me Python@TeachMePy·
#Python Pop Quiz 🐍❓ What is the output of this code? A) SyntaxError B) True C) False D) None
Teach Me Python tweet media
English
14
6
44
9.6K
Teach Me Python
Teach Me Python@TeachMePy·
#Python Pop Quiz 🐍❓ What is the output of the following code? A) True B) False C) SyntaxError D) None of the above
Teach Me Python tweet media
English
4
1
6
1.2K
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
6
3
27
10.8K
Teach Me Python
Teach Me Python@TeachMePy·
#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
Teach Me Python tweet media
English
8
4
20
9.5K
Teach Me Python
Teach Me Python@TeachMePy·
#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!?
Teach Me Python tweet media
English
3
3
13
1.4K
Teach Me Python
Teach Me Python@TeachMePy·
#Python Pop Quiz 🐍❓ What is the output of the following code? A) SyntaxError B) None C) Ellipsis D) None of the above
Teach Me Python tweet media
English
2
1
8
1.1K