Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab1 and 2 #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Lab1 and 2 #8

wants to merge 8 commits into from

Conversation

nahgheb
Copy link

@nahgheb nahgheb commented Jan 27, 2025

No description provided.

@YunbeiOu
Copy link

It is good to see you use the range() function.

But it is better to write 'range(0,101)' instead of 'range(0,100)'. The range(start, stop) function will stop before the stop number, which means range(0,100) will stop when number=99.

Though your code can still generate the right answer as 100 is not an odd number, the code can be improved to match the question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants