Get the information you need with the help of IDNLearn.com's extensive Q&A platform. Ask any question and get a thorough, accurate answer from our community of experienced professionals.
total = 0
numerator = 1
denominator = 1
while denominator != 20:
total += numerator/denominator
denominator+=1
print(total)
I wrote my code in python 3.8. I hope this helps.