0

My program

#import time to sleep
import time
import os
import datetime





print("1 = List all files")
print("2 = Select file")
print("3 = Delete selected")
print("4 = Set path")

#selection
print(" ")
sel = int(input("Enter choice: "))
print(" ")

if sel == 1:


if sel == 2:


if sel == 3:


if sel == 4:

Its saying IndentationError: expected an indented block on Second if Im starting with python, everything helps

Wrexik
  • 11
  • 2

1 Answers1

1

If your if block does not do anything, you should use a special "pass" word:

#import time to sleep
import time
import os
import datetime

print("1 = List all files")
print("2 = Select file")
print("3 = Delete selected")
print("4 = Set path")

#selection
print(" ")
sel = int(input("Enter choice: "))
print(" ")

if sel == 1:
    pass
if sel == 2:
    pass
if sel == 3:
    pass
if sel == 4:
    pass
user3431635
  • 372
  • 1
  • 7