0
Need help in below code
def yell_this(words_to_yell): words_to_yell= input() yell_this() I need to call yell_this() function with words_to_yell as argument and input for words_to_yell must be from user https://code.sololearn.com/WOhdeXO3orZw/?ref=app https://code.sololearn.com/WzQAWol6Fk6j/?ref=app https://www.sololearn.com/discuss/2065432/?ref=app
4 Respostas
0
Use one of these variants:
def yell_this1(words_to_yell=input()):
print(words_to_yell)
yell_this1()
OR
def yell_this2():
words_to_yell = input()
print(words_to_yell)
yell_this2()
https://code.sololearn.com/cazDvwilQxp8/?ref=app
+ 1
def yell_this(words_to_yell):
print(words_to_yell)
yell_this(input())
0
Asman got the output
But how to define words_to_yell
In the function??
That is the requirement of the code
0
It worked Asman. Thank you