Mastery15 – Conditional If

the conditional if es used whe you want something to happen only when a a certain condition is met. like comparing two variables and if they are equal the the program will follow the contition.

x = input()

y = input()

if x == y:

    print (“it is the same”)

 

CC BY 4.0 Mastery15 – Conditional If by sergio is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.