Ask coding questions

← Back to all posts
1
A question about functions
Tristan_School (0)

Is there a string of code that lets you end a function without doing anything else? This is for Python 3.

Answered by theangryepicbanana (652) [earned 5 cycles]
View Answer
Commentshotnewtop
2
theangryepicbanana (652)
def does_nothing(): pass
1
Tristan_School (0)

@theangryepicbanana No I mean if there's already code but thanks anyways

1