- 1
Pls help with this input question
hi=input() 3=int(input()) print(hi*3) would this equal to, hihihi?
6 Answers
+ 3
Run this code. It will ask you for input. Put this:
hi
3
https://code.sololearn.com/cAxnCh2qYg24/?ref=app
Hope this helps.
+ 2
No, 3=int(input()) would result in error.
Python thinks you are trying to assign 3 as a variable to int(input()) and raises an error due 3 being an invalid variable name.
+ 1
The output of a string multiplied by a number is that string repeated that number of times.
https://code.sololearn.com/cxD3LrWiNJPW/?ref=app
If you still don't understand see the lesson 9.1 String Operations on the Python for Beginers course.
0
Nothing is workingâŠis there a different way?
0
Code is in Python, no need to tag Java â