Here is my current code:
x = int(3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679)
q = int(input("How many digits of Pi would you like to Print?"))
print(x[1:y])
Sorry if that Code indenting thing didn't work, I didn't understand it.
You see, I know that it can't convert the string variable as a literal term into the integer, but what would I do from here?
The code is supposed to print Pi to a chosen amount of characters.
intvariablepian int. No matter what you do here, it will always print3.0000....ycome from in place ofq?! Either useyorq.