• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

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

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

none
21st Aug 2019, 8:08 PM
Rupal Raut
1 Odpowiedź
+ 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

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Question
3 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
3 Votes
generic programming understanding memory ownership
0 Votes
overloading operators << >>
1 Votes
I dont now that how to do js
2 Votes
fully dynamic arrays
1 Votes
Wishkit alternative for android
1 Votes
Default constructor and default assignment operator
0 Votes
How to start in web dev?
0 Votes
Hi
0 Votes