r/pythonhelp • • Mar 09 '20

my cousin sent me this question...Please help, thanks!

How to calculate this by using python? (question stated there is a total of 2020 minus signs existed)

Thanks for the help!

3 Upvotes

4 comments sorted by

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)

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 it

add 4 spaces at the start of each line for mobile or if you're not on new/beta reddit.

1

u/[deleted] Mar 14 '20

What’s the 2020 minus signs about?

Edit: I’m a moron