7 Réponses
+ 1
it makes no sense to teach an older version of the language when newer content is being made for python 3.x. It's also highly likely they'll drop support for python 2.x at some point in the future while 3.x will keep going or will be replaced by 4.x.
Besides, the change from 2.x to 3.x wasn't a huge shift in syntax. Having a course dedicated to it is silly. Several functions and operations were revamped or changed. Python 2.x was a bit faster in some aspects, but python 3.x handles massive integer values far more efficiently than 2.x.
+ 6
Also since I am new to solo learn I didn't really get the concept of disliking and liking someone's comment
+ 5
Oh sorry didn't mean to be rude.I am not learning python on solo learn so where I am learning it teaches in python 2.7
+ 5
Sorry again if you thought I was rude☺
+ 4
Your right
+ 4
And since you seem to be such a 'guru' and up to date on python can you change this code from python 2.7 to python.Already added parentheses
cars = 100
space_in_a_car = 4.0
drivers = 30
passengers = 90
cars_not_driven = cars - drivers
cars_driven = drivers
carpool_capacity = cars - space_in_a_car
average_passengers_per_car = passengers/cars_driven
print ("There are"),cars,("cars available")
print ("There are only"),drivers, ("drivers available")
print ("There will be") ,cars_not_driven,("empty cars")
print ("We can transport"),carpool_capacity,("people today")
print ("We have people") ,passengers,
("to transport")
print ("We need to put about"), average_passengers_per_car,(" per car")
+ 1
Quite a rude comment, here you go regardless:
https://code.sololearn.com/cfT1YB5ZcH13/?ref=app