All questions involve this portion of a program:
if (y>x and y<z)or(y<x and y>z): print("You have entered Condition 1") elif not(x!=y and y!=z): print ("You have entered Condition 2") else: print ("You have entered Condition 3")
1. If x = 10 and y = 10, what is the value of z to get Condition 3? Explain why.
2. Explain how you would get condition 2?
3. Give an example (x,y,z) to give condition 3
answer in format: x= ... , y = ..., z = ...
Can someone please help me with these 3 questions, this is a homework assignment I got from my computer science class. I'm finding it a bit complicated and will really appreciate it if anyone can answer these for me.
BTW I am a python beginner so please take it easy on me.
Thanks in Advance.