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

12th Nov 2019, 2:24 PM
Divya MI
Divya MI - avatar
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
12th Nov 2019, 3:16 PM
Asman-H
Asman-H - avatar
+ 1
def yell_this(words_to_yell): print(words_to_yell) yell_this(input())
12th Nov 2019, 2:32 PM
Asman-H
Asman-H - avatar
0
Asman got the output But how to define words_to_yell In the function?? That is the requirement of the code
12th Nov 2019, 3:00 PM
Divya MI
Divya MI - avatar
0
It worked Asman. Thank you
17th Nov 2019, 11:47 AM
Divya MI
Divya MI - avatar