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
39
8
86
11.3K
PyBerry Tech 🐍🍓
PyBerry Tech 🐍🍓@PyBerryTech·
@PythonPr Option B : 1010 a is a string, not a number. In Python, multiplying a string by an integer repeats the string. So "10" * 2 becomes "1010". The print statement outputs 1010, not 20, because no numeric multiplication occurs here.
English
0
0
1
574
Paylaş