base-conversion tag

2 questions


2 answers
119 views
0
Python basic questions) essence conversion program) int() can't convert non-string with explicit base

select= int (input(decision of decimal (16/10/8/2):)num=input (Enter Value:)if select !=2 and select != 8 and select != 16 and select != 10 : print(Please enter only one of the 16,10,8,2 numbers) ex...

2 years ago

1 answers
119 views
0
Python integer conversion program error question

sel=int(Determine input number (16/10/8/2) :)if sel != 16 or 10 or 8 or 2: print (Error)if sel == 16 or 10 or 8 or 2: num=input (Enter Value:)if sel == 16 : num10 = int(num,16)if sel == 10 : num10...

2 years ago

© 2024 OneMinuteCode. All rights reserved.