OUTPUT Of Python C.ode
def oct2(n):
print("passed octal number")
numstring=str(n)
decnum=int(numstring,8)
print("number in Decimal :",decnum)
print("number in Binary :",bin(decnum))
print("number in Hexadecimal",hex(decnum))
num=int(input("enter an octal number :"))
oct2(num)
SPAMMER ANSWERS WILL BE REPORTED!!
Answers
Answered by
1
Answer:
def oct2(n):
print("passed octal number")
numstring=str(n)
decnum=int(numstring,8)
print("number in Decimal :",decnum)
print("number in Binary :",bin(decnum))
print("number in Hexadecimal",hex(decnum))
num=int(input("enter an octal number :"))
oct2(num)
Answered by
1
Answer:
After Running The Above Python C.ode The Output has Come as in Above Attachment. .
Python Version Used Is Python Anaconda.
Attachments:
Similar questions