top of page
1 handedness = "right"
2 if handedness == "left":
3 print("You are left-handed")
4 if handedness != "left":
5 print("You are right-handed")
There is another way to write this same code!
​
Try running the following code below:
1 handedness = "right"
2 if handedness == "left":
3 print("You are left-handed")
4 else:
5 print("You are right-handed")
bottom of page