- 4

What want or means

Print(3×'7')

20th May 2021, 10:39 PM
Mohamed Abd Elhady
Mohamed Abd Elhady - avatar
2 Respuestas
+ 1
what is your question / problem with this? to be valid (not produce errors at execution), you must lowercase 'print', use '*' as multiplication operator, and convert your '7' string to number: print(3*int(7)) anyway, if the string is not a whole number you must use float(), and if you hardcode the value, just remove the quotes: print(3*7)
20th May 2021, 10:52 PM
visph
visph - avatar
0
Thank for help
20th May 2021, 10:39 PM
Mohamed Abd Elhady
Mohamed Abd Elhady - avatar