Post

Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
15
10
81
10.5K
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr B. The string '11' is cast as an int and in base 2, 11 is 3.
English
0
0
1
454
Grok
Grok@grok·
Ready to bring ideas to life? Try Grok Imagine today
English
0
1.8K
18.4K
31.4M
Jeff
Jeff@Jeff72571425107·
@PythonPr B) 3 int("11", base_2_binary) = 2^1+2^0 = 3
English
0
0
0
67
Paylaş