RE: Slope Calculator 11-09-2013, 04:36 AM
#6
There are a few ways, but one of the easiest is try-except.
and so on.
Mind you I said this was one of the easiest, not one of the best. There are other, more suitable ways of doing it.
Code:
x1 = input("Enter the first x value.")
try: x1 = int(x1)
except: x1 = 0
x2 = input("Enter the second x value.")
try: x2 = int(x2)
except: x2 = 0Mind you I said this was one of the easiest, not one of the best. There are other, more suitable ways of doing it.
![[Image: tumblr_m73y8go3jd1rb7u8co1_500.gif]](http://24.media.tumblr.com/tumblr_m73y8go3jd1rb7u8co1_500.gif)
Avatars are for faggots.

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)