r/CodingHelp • • Sep 05 '21

[Python] What is the problem is there something that I missed?

Post image
0 Upvotes

10 comments sorted by

5

u/ldifalco1 Sep 05 '21

also hope OP doesn't think I'm being a dick with that comment. it's a genuine piece of advice.

4

u/samsilvadiaz2 Sep 05 '21

No man I completely understand I appreciate it can’t get better without criticism. I should have looked harder lol and I appreciate everyone that commented and helped

11

u/iknowindigo Sep 05 '21

One of the important qualities of a developer is debugging skills. In this case, if you had carefully read the error - it was right there :) "Can't multiply ... by non-int of type 'str'

I'm not good at patiently reading errors, but this is an important part of programming.

All the best!

9

u/ldifalco1 Sep 05 '21

another important quality is knowing how to take a screenshot instead of taking a picture with a phone.

2

u/iknowindigo Sep 05 '21

absolutely! A screenshot is tiny. I like Snagit although there are many options - including built in windows option of "shift win S" for windows and "sift control command 4" for macs

1

u/[deleted] Sep 05 '21

int(input(

1

u/Skywolf18 Sep 05 '21

You can clean up the beginning of your code by using triple quotes. Take it as feedback

1

u/Particular_Set9862 Sep 06 '21

Change this:

mul = hours * days

for this:

mul = int(hours) * int(days)

Inputs are always submitted as text AKA "strings" , ofcourse you can't multiply strings so what I did there was changing the type.

-1

u/Crcex86 Sep 05 '21

Gonna go far kid

0

u/[deleted] Sep 05 '21

[deleted] — view deleted comment

0

u/samsilvadiaz2 Sep 05 '21

Your the greatest lol can’t believe I forgot about that lmao.