- 1
def proc(x): return 2*x*x def main(): x = 10 proc(x) print(x) print(proc(x))
Why is this code showing "no output"???
2 Antworten
+ 2
Because you aren't calling the main function by doing,
main()
+ 1
https://code.sololearn.com/cBwgp1qetHQH/?ref=app
https://code.sololearn.com/cTHRZ8i0Hk8z/?ref=app
Abhay is right , you have declared a function, but not called it!