I wrote some code with a lot of 'if..elif' statements in Python. I know the code style may be considered bad and I want to improve it.
num = int(input('please input a number: '))
if num <= 0:
print('1')
elif 0 < num <= 5:
print('2')
elif 5 < num <= 10:
print('3')
elif 10 < num <= 15:
print('4')
elif 15 < num <= 20:
print('5')
elif 20 < num <= 25:
print('6')
I would like to know how to replace so many 'if..elif' statements with other solutions?