how to type in python likes "return main()" in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to type in python likes "return main()" in c++?

I want to repeat my code,like "return main()" in c++, Please teach me how to types?

20th Aug 2017, 11:50 AM
王柏凱
王柏凱 - avatar
2 Answers
+ 10
Something like this? def my_func(): #your program goes here return myfunc() myfunc()
20th Aug 2017, 12:40 PM
Hatsy Rei
Hatsy Rei - avatar
0
Thank you!!
20th Aug 2017, 7:15 PM
王柏凱
王柏凱 - avatar