Share your repls and programming experiences

← Back to all posts
pi calculater
Name12 (106)

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.

Commentshotnewtop
VulcanWM (2104)

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 (106)

@VulcanWM alright, I did what you said.

AustinZhang1 (53)

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

VulcanWM (2104)

Or you could use try and except @AustinZhang1 @Name12