-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcars.py
More file actions
74 lines (69 loc) · 2.66 KB
/
Copy pathcars.py
File metadata and controls
74 lines (69 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# -*- coding: utf-8 -*-
"""my progect.ipynb
Automatically generated by Colab.
Original file is located at
https://colab.research.google.com/drive/1RbbY0KxfFnZCho-LpX7s5yJOi8Xs5wyX
"""
print("Welcome new user")
data_user=input("We will take some data from you. Do you allow us to do so : ").lower()
if data_user=="yes":
print("Welcome to our program")
name=input("Enter your name user : ")
print("Welcome" + "," + name)
age=input("Enter your age :")
print("your age " "," + age)
country=input("Enter the name of your country :")
print("your name : " + name + "," + "your age :" + age + "," + "your country :" + country )
print("Our program mentions some specific cars With the power of its engines")
elif data_user=="no":
print("thank you")
import sys
sys.exit()
else:
print("Please write yes or no correctly 😊")
import sys
sys.exit()
# program
print("In our program, cars are divided into categories")
cars=["Electric cars","Sedans cars","SUVs","Sports cars","Luxury cars"]
print(cars)
answer=input("Enter the type of car you want :")
if answer=="Electric cars":
print("Tesla Model Y")
print("Hyundai Ioniq 5")
print("Lucid Air")
print("Welcome to the second part of the program 😍")
print("We will mention the car specifications for you in this section")
answer=input("Enter the car you want :")
if answer=="Tesla Model Y":
print("Length: 4,790 mm","Width: 1,920 mm")
print("Height: 1,624 mm","Height from ground: 167 mm")
print("Expected price in 2025:In the Chinese market:The price starts at 263,500 Chinese yuan (about 35,900 US dollars) for the rear-wheel drive version Reuters")
print("As for Thailand, the price starts from 1,769,000 Thai baht (about 50,000 US dollars) for the rear-wheel drive version.")
print("Note: Prices and details mentioned may vary based on the local market and applicable taxes and fees. It is recommended to check with your local Tesla dealer for the latest information.")
elif answer=="Hyundai Ioniq 5":
print("Length: 4,635 mm")
print("Width: 1,890 mm")
print("Height: 1,605 mm")
print("Wheelbase: 3,000 mm")
print("Height from ground: 160 mm")
elif answer=="Sedans cars":
print("Toyota Camry")
print("Honda Accord")
print("Hyundai Sonata")
elif answer=="SUVs":
print("Kia Telluride")
print("Toyota RAV4")
print("Jeep Grand Cherokee")
elif answer=="Sports cars":
print("Porsche 911")
print("Chevrolet Corvette")
print("BMW M4")
elif answer=="Luxury cars":
print("Mercedes-Benz S-Class")
print("BMW 7 Series")
print("Audi A8")
else:
print("There is no this category of cars in our program ,I'm sorry about this 😢")
import sys
sys.exit()