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?

11th Jun 2021, 9:43 PM
$wan_jace124
7 odpowiedzi
+ 4
dont put quotes around the parenthesis in print().
11th Jun 2021, 9:45 PM
Slick
Slick - avatar
+ 3
Have fun learning ^^ Everyone starts small.
11th Jun 2021, 10:40 PM
Lennart Krauch
Lennart Krauch - avatar
+ 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.
11th Jun 2021, 11:26 PM
Slick
Slick - avatar
+ 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 ^^
12th Jun 2021, 12:16 AM
visph
visph - avatar
+ 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
11th Jun 2021, 11:21 PM
$wan_jace124
+ 1
I got it!! Thanks y’all! Had the numbers basically in the wrong order
11th Jun 2021, 11:29 PM
$wan_jace124
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
11th Jun 2021, 11:20 PM
$wan_jace124