I've just started with python, and need some help.
Decimal = raw_input('Ente r your decimal number: ')
hex = hex()
print "Your Hexadecimal is " + hex
is the code. and the problem is that i cant get number im punching in the raw_input field to appear in the () after the text. this is the error, Enter your decimal number: 110101
Traceback (most recent call last):
File "C:\Python24\py thon\hex.py", line 2, in ?
hex = hex()
TypeError: hex() takes exactly one argument (0 given).. does any one here, know what i need to do to acomplish my goal?
Decimal = raw_input('Ente r your decimal number: ')
hex = hex()
print "Your Hexadecimal is " + hex
is the code. and the problem is that i cant get number im punching in the raw_input field to appear in the () after the text. this is the error, Enter your decimal number: 110101
Traceback (most recent call last):
File "C:\Python24\py thon\hex.py", line 2, in ?
hex = hex()
TypeError: hex() takes exactly one argument (0 given).. does any one here, know what i need to do to acomplish my goal?
Comment