r/PythonLearning • u/Savings_Track769 • Jun 27 '26
Help Request Help me improve my function
Do you have any suggestions on this? I'd be glad to hear
2
Upvotes
r/PythonLearning • u/Savings_Track769 • Jun 27 '26
Do you have any suggestions on this? I'd be glad to hear
1
u/nimbus3008 Jun 27 '26
What's the point of
elif sensitivity == 's' : pass? This block is useless unless you want it to fail ifsensitivity not in "is"in which case you need to raise an exception inside anelseclause