You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paul Ambrose edited this page Jul 27, 2020
·
6 revisions
Python Challenges
Python challenges must adhere to this general format:
# @desc This is a description of **func_name**deffunc_name(s):
c=2*sreturncdefmain():
print(func_name('Car'))
print(func_name('Toy'))
print(func_name('Elephant'))
if__name__=='__main__':
main()
func_name can be any valid Python function name.
Challenge descriptions are embedded within Python comments (with @desc attribute).