I'm confused


#1

I was on question 10/14 and I put the exact answer but it didn’t agree with my answer so I clicked solution and it was the exact same answer I had I typed

cucumbers = 100
num_people = 6
whole_cucumbers_per_person = cucumbers/num_people
print whole_cucumbers_per_person

it should be right because the solution was exactly the same as my answer


#2

Two Types of Division

Is that for step 2?


#3

Can I ask a question? Is codeacademy learning us python 2 or python 3?


#4

In the older courses, Python 2.

raw_input() vs. input()

print vs print()

are the two principal differences we encounter the most, though there are many others.

7 / 2  =>  3 in Python 2    (int / int => int)

7 / 2  =>  3.5 in Python 3  (int / int => float)

#5

It is step 2 but it kept saying that my answer was wrong so I couldn’t go to step 3


#6

Try a hard refresh (Ctrl+F5) and see if that helps.


#7

I honestly didn’t think of refreshing the page…I’d normally do that but I just didn’t think of it hah thanks though


#8

You’re welcome. Did it cure the hangup?


#9

Your 6x6 quilts have taken off so well, 6 people have each requested 6 quilts. Print out how many tiles you would need to make 6 quilts apiece for 6 people.
This was after squaring it
How is the answer: print( 6 ** 4)
I don’t understand


#10

To give this question some context, please post a URL to the exercise page. There does seem to be something amiss.


#11

https://www.codecademy.com/paths/computer-science/tracks/cspath-intro/modules/cspath-python-syntax/lessons/learn-python-syntax/exercises/exponents


#12

Six people each get six quilts. That’s 36 quilts in all.

Each quilt is 6X6 meaning 36 tiles per quilt.

number_of_tiles = number_of_quilts * tiles_per_quilt

number_of_tiles = 36 * 36
= 6 ** 2 * 6 ** 2
= 6 ** 4

#13

Oh okay. Thank you. That makes so much more sense.


#14

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.