Skip to content
Advertisement

how to fix my if condition when to validate the day and month

JavaScript

my error massage File “”, line 13 if valid_month = True and valid_day = True : ^ SyntaxError: invalid syntax

Advertisement

Answer

in if statement we should use double == the right syntax is

if valid_month==True and valid_day ==True :

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement