TabError: inconsistent use of tabs and spaces in indentation
ayushs-MacBook-Air:desktop AyushGupta$ python website_blocker.py File "website_blocker.py", line 16 if website =='1': ^ TabError: inconsistent use of tabs and spaces in indentation ayushs-MacBook-Air:desktop AyushGupta$ python website_blocker.py Hello User,Kindly add the webistes you want to block After you are done with adding all the websites kindly press 1 Enter website www.facebook.com Enter website www.instagram.com Enter website www.cricbuzz.com Enter website 1 Enter website1 Enter in 24 hour format the time you start your work20 Enter in 24 hour format the time you generally end your work21 Traceback (most recent call last): File "website_blocker.py", line 28, in <module> if dt(dt.now().year,dt.now().month,dt.now().day,start_time)<dt.now()<dt(dt.now().year, dt.now().month,dt.now().day,end_time): TypeError: an integer is required (got type str) ayushs-MacBook-Air:desktop AyushGupta$ clear
File "website_blocker.py", line 28 if dt(dt.now().year,dt.now().month,dt.now().day, (int)start_time)<dt.now()<dt(dt.now().year,dt.now().month,dt.now().day, (int)end_time): ^ SyntaxError: invalid syntax ayushs-MacBook-Air:desktop AyushGupta$ python website_blocker.py File "website_blocker.py", line 23 start_time=(int)input("Enter in 24 hour format the time you start your work") ^ SyntaxError: invalid syntax ayushs-MacBook-Air:desktop AyushGupta$ python website_blocker.py File "website_blocker.py", line 27 while True: ^ SyntaxError: invalid syntax ayushs-MacBook-Air:desktop AyushGupta$ python website_blocker.py Hello User,Kindly add the webistes you want to block After you are done with adding all the websites kindly press 1 Enter website