Search code examples
pythonpython-3.9

Why am I getting "Indent expected" error in python 3.9.4?


I keep getting this error in python. It keeps saying Indent expected. Can you try to explain?

import pyautogui

def Bot():
    #Next_Wave = x=1782, y=1017
    #Get_Questions = x=988, y=646
    #Anwser = x=1128, y=706

Solution

  • Comments are totally ignored here. This is basically what you're doing

    import pyautogui
    
    def Bot():
        
    

    Instead insert pass

    import pyautogui
    
    def Bot():
        pass