0

Multiple variable question in python need sution

Case.1 Input hi 5 Output hihihihihi Case.2 Input Python 2 Output PythonPython Need solution of this

23rd Aug 2022, 11:54 AM
Sajid Usama Warraich
4 Réponses
+ 1
You can code it like this: word = input() number = int(input()) print(word*number)
23rd Aug 2022, 1:28 PM
Juan
Juan - avatar
+ 1
Review the lesson on String Operations where it shows how to do string multiplication.
23rd Aug 2022, 1:30 PM
Brian
Brian - avatar
0
Since the request language is Python, loop is not needed. Multiplication can do the work, there should be instruction in the Python course.
23rd Aug 2022, 1:25 PM
abpatrick catkilltsoi
abpatrick catkilltsoi - avatar