If-Else Statement

if <boolean expression>:
        <block of statements 1>
    else:
        <block of statements 2>
x = int(input("Enter a number: "))
if x >= 0:
		print("Your number is positive!")
else:
		print("Your number is negative")
print("Thanks for playing!")

Flowchart

x = int(input("Input: " ))
if x >= 0:
  print(x)
else:
  print(-1 * x)
print("Goodbye")