Answers><span itemprop="name">Programming & Computer Science</span>>Python
Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.
Provide the following.
from click._compat import raw_input
try:
input = raw_input("Please enter the value to check")
except NameError:
pass
a = raw_input('Please enter the username : ')
print ('Username : ', a)
Comments
Leave a comment