def some_func(x): x = "Hi!" print(x) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

def some_func(x): x = "Hi!" print(x)

Why this code is not run, can anyone tell me ?

21st Aug 2019, 8:08 PM
Rupal Raut
1 Answer
+ 7
Because you just defined the function, now you need to call it: some_func("") https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2286/
21st Aug 2019, 8:29 PM
Solo
Solo - avatar