Question
Write a code segment for the following situation: [5 points] I am hosting a pizza party this Friday and I am going to charge people
Write a code segment for the following situation: [5 points] I am hosting a pizza party this Friday and I am going to charge people different amount if they are on time to the party or late to the party. If they are on time, they only pay $3.50 at the party. If they are late, they are paying $5.00. I have already defined a variable called arrive which represents the hour they arrive to the party. If they arrived on or before 5, they are on time. After 5, they are late. Set a variable called price to the price they are going to pay.
INTRO TO PYTHON CLASS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started