Share your repls and programming experiences

← Back to all posts
pi calculater
Name12 (161)

this is a follow up of the Fibonacci calculator. it is just a useful little program that I developed. io hope you guys like it. please leave an upvote if you do. thanks.

VulcanWM (2756)

Cool! Maybe you should do something like, How many digits of Pi do you wan to output? (It has to be bigger than 1), cos on my first attempt I tried 0, I know, I'm different to normal people that way, and it showed an error.

Name12 (161)

@VulcanWM alright, I did what you said.

AustinZhang1 (65)

@Name12 You should also use
if i < 1:
print('Invalid Input')

VulcanWM (2756)

Or you could use try and except @AustinZhang1 @Name12