@PythonPr
Python Programming
2 days
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
34
22
211

Replies

@SKoffical_ai
SK
2 days
@PythonPr D empty string
0
0
0
@ICEgov
U.S. Immigration and Customs Enforcement
4 months
America needs you! Join U.S. Immigration and Customs Enforcement today.
2K
3K
20K
@chilispace
CHILISPΔCΞ ⚡️ priv/acc
2 days
@PythonPr It's D
0
0
1
@behen_jerr13825
Vet77 (Jerry)
1 day
@PythonPr “”
0
0
0
@CodingComputing
Coding Computing Coach
2 days
@PythonPr Answer: Technically, nothing (no returns, doesn't even print quotes) Solution: `*` of str and int gives repetition of string. Eg, "Py" * 3 gives "PyPyPy" If the multiplication is by 0, means 0 repetitions of the str, ie, empty string. So, "Python" * 0 is "" When printed, +
1
0
11
@DorianSotpyrc
Dorian Sotpyrc
2 days
0
0
0
@ogedemgbee
sleek
2 days
0
0
0
@wambuakyalo19
freak of nature🇰🇪
1 day
0
0
0
@SatheeshPaskan1
Satheesh Paskanti
2 days
0
0
0
@Abdulsalamdev
Silent Architect
2 days
0
0
0
@jerryzmuller
Jerry Z. Muller
3 days
One thing in life is certain: you’re going to die. Oddly enough, that fact can be liberating. Remembering that life has an endpoint helps you live it so that it has a point—a direction, a storyline, something more than a string of disconnected
9
15
320
@hsoftug1
🅷🆂🅾🅵🆃🆄🅶
2 days
0
0
0
@MRaphtes87913
Μαρούσης Ράφτης
1 day
0
0
0
@jkiarie
Joseph Kiarie
2 days
0
0
1
@de_tech_guru
PeterBug
2 days
0
0
0
@Flokigoocal
Floki
1 day
0
0
0
@Enioluwa123
Téju
2 days
@PythonPr Error
0
0
0
@e2m9227
Eduardo Martinez
1 day
@PythonPr Error
0
0
0
@ZulobaSt
Zuloba
2 months
Just like stepping on clouds with our Cashmere Slipper Home Socks! Perfect for chilly days around the house. Your new best friend for staying warm and stylish. Get Your Today!
0
100
1K
@modernconn2025
modernconnect network
2 days
0
0
0
@KKulabill
KulaBill KulaBill
1 day
@PythonPr D. Empty string
0
0
0
@IFECHUKWUD37623
Ifechukwude Nwoko
2 days
@PythonPr D Prints an empty string
0
0
5
@Rebel_Dev_
RebelDev
2 days
@PythonPr D = empty
0
0
0
@LexyTheCyberCat
Lexy_
2 days
@PythonPr Error, no se puede multiplicar un string con un entero, no tiene sentido xD
0
0
1
@argent_smith
Павел Аргентов
2 days
@PythonPr It should be a compiler type error.
0
0
0
@Alonemax280381
Alonemax
2 days
@PythonPr Nothing is printed, because python word is string and we are multiplying string with zero which return empty space or print("")
0
0
0
@adriancityman
Okosun Adrian
24 hours
@PythonPr Omon you trying to print a str and multiplying an int without int(‘python’) I forgot the word and you expect an answer aside from system error
0
0
0
@iamsaniydv
Sani Yadav
1 day
0
0
1
@HakeemBoah
Hakeem Boah
2 days
@PythonPr ANSWER is D) "" Or more practically, doesn't print anything at all, not even the empty quotes in option D
0
0
0