you need to check if there is at least one digit in the string(str), a number. if there is, then print the corresponding text.
elif type(self.supplement_to_soda) == int or (self.supplement_to_soda.isdigit()):
print('enter please supplement type - str')
I tried using isdigit(), it didn’t help, and it didn’t work through any() either.
help me find the right function for this task
2