Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtledemo.chaos import f
- from typing import io
- input = input("Enter a statement condition")
- flag = False
- try:
- input = input.strip()
- if input[2] == ' ' and input[0:3].strip().lower() == "if" and input[len(input)-1] == ':':
- condition = bool(input[3:len(input)-2])
- else :
- flag = True
- except:
- flag = True
- if not flag :
- print("Valid")
- else:
- print("not Valiid")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement