Python codes
Python codes
Ink
hello.py >...
1 d=int (input ("Enter the decimal number:"))
2 print(d, "in binary form is", bin(d))
3 print (d, "in octogonal form is",oct (d) )
print (d, "in hexogonal form is", hex(d))
hello.py >...
b=eval (input ("Enter the binary number:"))
2 print (b, "in hexagonal form is", hex(b))
3 print (b, "in octagonal form is", oct (b))
hello.py >...
X=eval(input ("Enter the octoganal number:"))
2 print (x, "in binary form is",bin(x))
3 print (x, "in hexagonal form is",hex(x))
hello.py >...
1 import math
x=int(input("Enter a number:"))
3 p=math.factorial (x)
4 print("The length of the factorial of",x, "is", len (str (p) ))
5