0
I’m a total noob and I thought I had this right
I’m on the the first calculation program lesson, the “how many seconds in a month”. And I know the equation is 60*60*24*30, which I thought would be print ‘((60*60)*24)*30)))’ ….am I wrong? Idk how else it would work?
7 odpowiedzi
+ 4
dont put quotes around the parenthesis in print().
+ 3
Have fun learning ^^
Everyone starts small.
+ 3
the parenthesis aren't correct. try writing it out from the beggining and place each set of parenthesis as you write out the equation.
plus, python usually tells you whats wrong in the error message.
+ 2
since you only do multiplication in your equation, and multplication is commutative (a*b = b*a), you doesn't need parenthesis at all and order doesn't matter ^^
+ 1
Again im a total noob so its very possible im messing up something obvious but I cant help but think its pretty damn simple (this lesson anyway) and i still cant get it to say CORRECT
+ 1
I got it!! Thanks y’all! Had the numbers basically in the wrong order
0
So its correct without the quotes? Like i have the correct amount of parenthesis in the right places because its still telling me im wrong