-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththird.py
More file actions
30 lines (28 loc) · 1.02 KB
/
third.py
File metadata and controls
30 lines (28 loc) · 1.02 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
car = 500
people = 100
peopleWhoHateDriving = 10
carNames = "Nissan"
myCarColors = ['red', 'blue', 'green']
yourCarColors = ['black', 'yellow', 'pink']
peopleWithCars = car * people
peopleNotDriving = peopleWithCars - peopleWhoHateDriving
squareThePeople = people ** 2
halfThePeople = people / 2
thirdOfTheCars = car / 3
remainderOfCarsFromThird = car % 3
cubeThePeople = people ** 3
threeNissans = carNames * 3
allCarColors = myCarColors + yourCarColors
repeatMyColors = myCarColors * 3
print("People with Cars " + str(peopleWithCars))
print("Have car don't Drive " + str(peopleNotDriving))
print("Squaring the people " + str(squareThePeople))
print("Cubing the people " + str(cubeThePeople))
print("halfed the people " + str(halfThePeople))
print("Third of The Cars " + str(thirdOfTheCars))
print("Remainder of Cars from Third " + str(remainderOfCarsFromThird))
print(threeNissans)
print("MY Car Colors", myCarColors)
print("Your Car Colors", yourCarColors)
print("All My Cars", allCarColors)
print("My repeated Colors", repeatMyColors)