- 2

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

Please say the answer faster

17th Nov 2020, 4:06 PM
BADITHALA NAYAN PREETHAM
BADITHALA NAYAN PREETHAM - avatar
12 Antworten
+ 12
Try finishing this lesson! https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2427/ Edit: BADITHALA NAYAN PREETHAM it's easy to understand. if you multiply a string by an integer, answer will be integer times string Ex: print(3*'7') =777 here, 3 = integer '7' = string That's it! Understood?
17th Nov 2020, 4:10 PM
Simba
Simba - avatar
+ 1
'7' when some datatype is in single or double quotes it is consider as string. For eg string='code' it is a string string='7' it is also a string .when string is multiplexed with (3 * '7') it prints the string 3 times 777 would be final output.hope u understand badithala nayan
18th Nov 2020, 9:11 AM
Ajith
Ajith - avatar
+ 1
Thanks Mr.ajith
18th Nov 2020, 11:11 AM
BADITHALA NAYAN PREETHAM
BADITHALA NAYAN PREETHAM - avatar
0
165
17th Nov 2020, 4:30 PM
~प्रिया
~प्रिया - avatar
17th Nov 2020, 4:37 PM
~प्रिया
~प्रिया - avatar
0
777
17th Nov 2020, 5:59 PM
Surkhab Khan
Surkhab Khan - avatar
0
A string and an interger? 🙃🧐
17th Nov 2020, 8:31 PM
Accounts Gôôglé
Accounts Gôôglé - avatar
0
It's already clarified man but thanks for responding
19th Nov 2020, 2:54 PM
BADITHALA NAYAN PREETHAM
BADITHALA NAYAN PREETHAM - avatar
- 1
I read it but not understood
17th Nov 2020, 4:11 PM
BADITHALA NAYAN PREETHAM
BADITHALA NAYAN PREETHAM - avatar