MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/pythonhelp/comments/ffst0t/my_cousin_sent_me_this_questionplease_help_thanks/
r/pythonhelp • u/Millerller • Mar 09 '20
How to calculate this by using python? (question stated there is a total of 2020 minus signs existed)
Thanks for the help!
4 comments sorted by
1
Idk how to add a code block on mobile but this should do it
ans = 1-113/355
for _ in range(100):
ans = 1-1/ans # this line should be indented
print(ans)
1 u/Millerller Mar 09 '20 thank you! 1 u/xelf Mar 10 '20 Idk how to add a code block on mobile but this should do itadd 4 spaces at the start of each line for mobile or if you're not on new/beta reddit.
thank you!
add 4 spaces at the start of each line for mobile or if you're not on new/beta reddit.
What’s the 2020 minus signs about?
Edit: I’m a moron
1
u/cndvcndv Mar 09 '20
Idk how to add a code block on mobile but this should do it
ans = 1-113/355
for _ in range(100):
ans = 1-1/ans # this line should be indented
print(ans)