Int value demo : Int : Data Type : Python examples (example source code) Organized by topic

C++
PHP
Python


Python  »  Data Type   » [  Int  ]  Screenshots 
 



Int value demo




number = input('Enter a number between and 10')
if number <= 10:
    if number >= 1:
        print 'Great!'
    else:
        print 'Wrong!'
else:
    print 'Wrong!'

           
       
Related examples in the same category
1.  Define and use int Define and use int
2.  Int: modulus (remainder), power Int: modulus (remainder), power
3.   A value as a condition  A value as a condition
4.  Define and use integer Define and use integer
5.  Compare integers using if structures, relational operators and equality operators. Compare integers using if structures, relational operators and equality operators.
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.