Skip to content

TypeScript code snippet – How do i add limitations in inputs in python?

hp_cur=int(input("Enter the current number of HP (1-75): "))
hp_max= int(input("Enter the maximum number of HP (1-75): "))
See also  Python code snippet - How to add methods to manuplate the model in serializers?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.