Write a python script to store an octal number 125 in a variable and print it in binary format Get link Facebook X Pinterest Email Other Apps - October 22, 2022 # Write a python script to store an octal number 125 in a variable and print it in binary#formata=0o125print(bin(a)) Get link Facebook X Pinterest Email Other Apps Comments
Write a python script to print first 10 multiples of 5 - October 25, 2022 #. Write a python script to print first 10 multiples of 5 a=int(input( "Enter the number" )) i= 1 while i<= 10 : print(a*i) i+= 1 Read more
Write a Python script to create a list of first N even natural numbers. - October 21, 2022 #Write a Python script to create a list of first N even natural numbers. list=[] num=int(input( "Enter the numbers:" )) for i in range( 1 ,num): if i% 2 == 0 : list.append(i) print(list) print(type(list)) Read more
Write a python script to store binary number 1100101 in a variable and print it in decimal format. - October 22, 2022 #Write a python script to store binary number 1100101 in a variable and print it in #decimal format. a= 0b 1100101 print(a) Read more
Comments
Post a Comment