python,math,rounding , How to get a pizza program to round to a full pizza In PYTHON [duplicate]

## Question:

Tag: python,math,rounding

so i'm making a pizza program in Python 3.3 that takes input from the user and prints the amount of pizza's needed. Every pizza is cut into 8 slices. So it works like this: You input the amount of people coming to the party, and how many pieces EVERYONE will eat on average. The computer then tells you how many pizza's you need to order. My problem is, say 10 people are coming to the party, and they will eat 2 pieces each on average. The computer gives me 2.5, and I need to find a way for it to round to the nearest full number up. See what I mean? Here is my code so far

`````` eaters = input("How many people are attending the party?")

pieces = input("How many pieces will everyone eat on average?")

pizzas = float(eaters) * float(pieces)
orders_needed = pizzas/8
print(orders_needed)
``````

Any ideas on how I can do this?

`math.ceil` rounds up.

``````import math

eaters = input("How many people are attending the party?")

pieces = input("How many pieces will everyone eat on average?")

pizzas = float(eaters) * float(pieces)
orders_needed = math.ceil(pizzas/8)
print(orders_needed)
``````

# Related:

## Identify that a string could be a datetime object

python,regex,algorithm,python-2.7,datetime
If I knew the format in which a string represents date-time information, then I can easily use datetime.datetime.strptime(s, fmt). However, without knowing the format of the string beforehand, would it be possible to determine whether a given string contains something that could be parsed as a datetime object with the...

## SyntaxError: invalid syntax?

python,syntax
Good afternoon, I am developing a script in python and while I am trying to compile it from the terminator/terminal i always get this error, but I cannot understand where is the syntax error? File "_case1.py", line 128 print ('########################') ^ SyntaxError: invalid syntax Then I just change the position...