0
Can you tell the date of the Bengali New Year from this code?
# Determine the Bengali Calendar Year import datetime month = int(datetime.datetime.now().strftime('%m')) if month >= 4: date = int(datetime.datetime.now().strftime('%d')) if date >= 14: print('The Bengali Year right now is ' + str(int(datetime.datetime.now().strftime('%Y')) - 593) + '.') else: print('The Bengali Year right now is ' + str(int(datetime.datetime.now().strftime('%Y')) - 594) + '.')
12 odpowiedzi
+ 2
Oh... sorry man, I misunderstood the question, lol
0
Yes, the output of this code is "The Bengali Year rigth now is 1427."
0
I×Am×Idiot Yes but can you tell the date?
0
Nop, only the year
0
I×Am×Idiot You gotta try harder
0
What?😂
0
What is the hipotetic ouput of the code?
0
The output Is always the current Bengali Year. But can you say the date from the code.
0
The full output of your code is "The Bengali Year rigth now is 1427." Without date
0
Well, the date is always the same, that's why it doesn't show it in the output
0
I asked for date of the new year btw, not the current date in the Bengali calendar
0
Perhaps I will add a date feature sometime soon