+ 1
I need help
I wanna create two functions. First function taking user input & Second function taking that user input and iterating each character in new line.
8 Respostas
+ 4
Mir Hamza
you should learn how function calling and passing parameters to a function work
and one more point you can only take input in sololearn at the beginning
https://code.sololearn.com/cLKp84eTPWy9/?ref=app
+ 2
God bless you brother. It worked
+ 1
Mir Hamza
show us your code first
+ 1
Mir Hamza
you need to call the 2nd function and pass the inpt to 2nd function during its calling 👇👇👇👇👇
https://code.sololearn.com/c6iK68170zCh/?ref=app
+ 1
Bro, if you don't mind please explain how to solve this one.
https://code.sololearn.com/cVx64n9ZVXTj/?ref=app
0
def user_input ():
inpt = input ("Enter something:")
return inpt
def iteration():
for char in user_inpt ():
print (char)
0
I just want user_input function value in second function. I don't want it to execute again & display me "Enter message: " again.
0
Where are your challenge