100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary (Python) Robot Seller Program

Rating
-
Sold
-
Pages
5
Uploaded on
03-05-2025
Written in
2024/2025

Robot Seller Program I started by creating an outcome for the customer greeting. Second, I added name = input() for the customer's name. Third, I listed the "parts" that can be purchased. Fourth, I encoded a command called allparts similar to "parts" to be the output when the customer makes a purchase.

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
May 3, 2025
Number of pages
5
Written in
2024/2025
Type
Summary

Subjects

Content preview

Robot Seller Program

I started by creating an outcome for the
customer greeting.

Second, I added name = input() for the
customer's name.

Third, I listed the "parts" that can be purchased.

Fourth, I encoded a command called allparts
similar to "parts" to be the output when the
customer makes a purchase.

Fifth, order = input() for the customer's input.

Sixth, I used a for loop to produce all the
available items the customer wants to buy.

Seventh, if order == allparts[x] to check if the
"order" is equal to any of the "allparts", so that
when the customer enters something, the
program reads it.

, Eighth, I used print to show "order accepted" so
the customer knows their order is available.

Finally, I included an else condition, which will
cause the program to decline and indicate that
the order is unavailable if the item is not
available.


#Let's start a motorcycle parts shop together!!
We're going to build a motorcycle shop using
some now Python programming concepts!!
#Let's build robot motor parts seller!!

print("Hello, welcome to Motorcycle Parts
Shop!!!")
name = input("Let me know your name? \n")

print("Hello, " + name + ", Thank you so much
for coming in today.\n")
parts = """AVAILABLE PARTS: Speedometer,
Sprockets, GearBrake, Frame, FuelTank,
Handle bar, Throttle, Headlights, Spark Plugs,
Oil Filter, Gear Shift Lever. """
$7.79
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
christianosera

Also available in package deal

Get to know the seller

Seller avatar
christianosera CSTC, COLLEGE OF SCIENCES TECHNOLOGY AND COMMUNICATION INC,
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
7 months
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions