The Joy of Programming
Conditional Expressions
There is no preview available for this lesson. Please join the course to access it. Click here to enroll.
Questions
doubt
NP Nizma Parvin
3 years ago
Post
Dismiss
checkkingg
checkkingg
DP Devjith P
3 years ago
Post
Dismiss
?
?
JE Joswin Emmanuel
3 years ago
Post
Dismiss
Done
Done
DP Dhanush P N
3 years ago
Post
Dismiss
##7.13 ```python elif dot_location == "left": d = dot(x=x-r, y=y) elif dot_location == "right": d = dot(x=x+r, y=y) ```
##7.13 ```python elif dot_location == "left": d = dot(x=x-r, y=y) elif dot_location == "right": d = dot(x=x+r, y=y) ```
DP Dhanush P N
3 years ago
Post
Dismiss
##7.14 ```python for i in range(n): if i % 2 == 0: c = circle(x=x, y=y, r=r) else: c = rectangle(x=x, y=y, w=r*2, h=r*2) show(c) x = x + 2*r ```
##7.14 ```python for i in range(n): if i % 2 == 0: c = circle(x=x, y=y, r=r) else: c = rectangle(x=x, y=y, w=r*2, h=r*2) show(c) x = x + 2*r ```
Want to discuss?
Post it here, our mentors will help you out.