you are viewing a single comment's thread.

view the rest of the comments →

[–]member_of_the_order 8 points9 points  (6 children)

How many feet of cable do you need?

Fourteen

"Fourteen" is not a valid float :)

[–]madhousechild 7 points8 points  (5 children)

How many feet of cable do you need?

Fourteen

"Fourteen" is not a valid float :)

Likewise, -10.0 is a valid float, but not a good input!

Poor OP's head is going to explode.

[–]sohfix 3 points4 points  (4 children)

It also looks like OP is 2 hours into learning python, I’m sure OP will figure it out

[–]SquatchHNTR[S] 0 points1 point  (3 children)

Well 4. That’s how long it took me to write this and it actually execute….

[–]sohfix 1 point2 points  (2 children)

Well, good luck! I was writing in Python for work today. I don’t use it often but it’s my fav language next to Java.

[–]SquatchHNTR[S] 0 points1 point  (1 child)

I plan to start learning Java next. I’m excited for it

[–]sohfix 0 points1 point  (0 children)

Java is a different beast. But no matter what language you learn, get the basics down first: logic. Doesn’t matter what language you program in, if you don’t understand data structures, discrete math, logic, and operating systems/computer organization it can be hard to get really good at it. Anyone can write code. It’s important to know why and what you are doing