A
A
AntyBoyKot2021-11-13 00:22:52
Python
AntyBoyKot, 2021-11-13 00:22:52

The code does not work, there are no errors. What to do?

The code does not work, there are no errors, I did everything according to the book. (don't look at the names)

def bud(blyash):
    vsego=0
    for week in range(1,53):
        vsego=vsego+blyash
        print('Tyzhd %s = %s blyash'%(week,blyash))
bud(2)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2021-11-13
@AntyBoyKot

Watch carefully what variables you display and how they change in the code. By the way, normal names would make it easier for you to find the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question