@Marbelous, please don't share links to outdated tutorials. it's ancient (2.4) while latest py2 version is 2.7 and by now even python2 support ended
Here is the current one https://docs.python.org/3/tutorial/index.html
@Tonje - this is not best example of code
Here is the current one https://docs.python.org/3/tutorial/index.html
@Tonje - this is not best example of code
- brackets on line 3 are redundant
second_player = boston_celtics[1]
- it uses so called old-style formatting. By now there is str.format() method and f-strings
print("The second player in boston is {}".format(second_player)) print(f"The second player in boston is {second_player}") # requires 3.6+
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs