Need solution | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Need solution

Not showing all output☹️ Full code: https://code.sololearn.com/c6qdl8EYrTif/?ref=app

1st Jan 2023, 4:46 PM
Mustakim Rahman
Mustakim Rahman - avatar
3 Answers
+ 5
You have a typo there. In line 44 you declare a variable "nest" and two lines later you are using "next". Advice: - do not call your variable "next". It is not an error in itself, but next() is also a built-in function and by declaring a variable with this name, you overwrite this function. - your code is too large and confusing. It is trying to do tooany things. It is better to split them up in multiple parts, that way you will also find the error more easily.
1st Jan 2023, 5:27 PM
Tibor Santa
Tibor Santa - avatar
+ 4
instead of this: print("next 5 days are ", next + datetime.timedelta(days=x1)) write this: print("next 5 days are ", nest + datetime.timedelta(days=x1))
1st Jan 2023, 5:31 PM
SoloProg
SoloProg - avatar
+ 2
Thanks Tibor Santa SoloProg ❤️‍🔥
3rd Jan 2023, 6:55 AM
Mustakim Rahman
Mustakim Rahman - avatar