Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

error checking

  1. dumps41

    Python how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message

    how do i get numberOfItemsHired to accept only 1-500 items, and if not 1-500 display an error message? This is my code, I've tried if not int(entry_numberOfItemsHired.get()) >= 1 or int(entry_numberOfItemsHired.get()) <= 500: and I've also tried using: if...
Back
Top Bottom