I am a little confused with how int() works when converting a number from base 10 to base 3 in Python.
This code will print out the converted base 3 numbers from the range given by the user.
Value=0
Number=int(input("Please Input A Number "))
for i in range(0,Number):
Value=int(i,base=3)
print(Value)
I have TypeError: int() can't convert non-string with explicit base returned as an error.
An example of what I am trying to achieve. Example 32 in base 3 is 1012 Perhaps I am confused to what int(x,base=y) actually does to the number.