- 20

What is the output of this code>>>print(3*"7")

python

7th Dec 2016, 5:09 AM
Dwayne Woods
Dwayne Woods - avatar
30 Respuestas
+ 2
777 is the answer Thanks
3rd Jan 2019, 3:41 PM
Samuel Usen
Samuel Usen - avatar
+ 2
since "7" is a string like seven so the 3* makes the seven 3 times (777 like seven seven seven) string is a text
7th Jul 2021, 1:52 PM
ruben kin
ruben kin - avatar
+ 1
777 is answer of this question (What is the output of this code? >>> print(3 * '7')).
18th Jun 2020, 4:16 PM
novaking
novaking - avatar
+ 1
hi
9th May 2021, 5:28 PM
SAHIL AHAMED
+ 1
How do u get 777
14th Jun 2021, 11:40 AM
Sandhya Pulipati
+ 1
The output of this code is (3* '7') is 777, 7 is put into quotation marks which means it will output 7 - 3 other times.
26th Jul 2022, 6:38 PM
A C
0
hhow do you get 777?
19th Jul 2018, 12:38 PM
JP Ybanez
JP Ybanez - avatar
0
🤔
19th Jul 2018, 12:38 PM
JP Ybanez
JP Ybanez - avatar
0
What is the output of this code?
23rd Jan 2019, 1:42 PM
Pravin Anil Wani
Pravin Anil Wani - avatar
0
777
24th Jan 2020, 9:43 AM
Femzi
Femzi - avatar
0
e
11th Sep 2020, 7:33 PM
Connor Marshall
Connor Marshall - avatar
0
The answer is 777
14th Sep 2020, 10:36 AM
Polycap Jurah
0
777 is the answer because 7 is a string getting multiplied by 3
22nd Oct 2020, 6:17 AM
Ken Tran
Ken Tran - avatar
0
777 bro like what da heck bro like why bro like ug
28th Jan 2021, 7:17 PM
Jesus MacielGonzalez
Jesus MacielGonzalez - avatar
0
777
28th May 2021, 9:16 AM
Vraj Soni
Vraj Soni - avatar
0
4th Aug 2021, 4:25 AM
P.Jeya Prakash
0
Here is the solution: 777
26th Aug 2021, 2:12 PM
Owethu Sotomela
Owethu Sotomela - avatar
0
Answer is 777
30th Aug 2021, 10:39 AM
Ansh Pandey
0
lol i couldnt find out how to do it, i kept putting 7*7*7
9th Sep 2021, 6:35 PM
Seth Elder
Seth Elder - avatar
0
I found it hard too, its almost like maths, it says 3 * '7' its put the 7 in quotation marks which means it will output 7, 3 times. I hope I've helped. 777
27th Feb 2022, 9:26 AM
Thuwayba Ahmed
Thuwayba Ahmed - avatar