Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 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

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. """

Written for

Course

Document information

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

Subjects

$8.29
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
-
Member since
1 year
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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions