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
English,
29 days ago
Hindi,
29 days ago
India Languages,
29 days ago
History,
1 month ago
Math,
9 months ago