Python Forum
Just need some clarification
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Just need some clarification
#3
@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
  • 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

Reply


Messages In This Thread
Just need some clarification - by Tonje - Oct-01-2020, 02:50 PM
RE: Just need some clarification - by Marbelous - Oct-01-2020, 03:18 PM
RE: Just need some clarification - by buran - Oct-01-2020, 03:45 PM
RE: Just need some clarification - by deanhystad - Oct-01-2020, 03:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can I get some clarification on importing functions from external files. wh33t 3 915 Feb-25-2023, 08:07 PM
Last Post: deanhystad
  Looking for clarification related to performance Pymon 5 2,055 Apr-04-2022, 04:47 PM
Last Post: deanhystad
  Read Tensorflow Documentation - Clarification IoannisDem 0 1,174 Aug-20-2021, 10:36 AM
Last Post: IoannisDem
  *args implementation and clarification about tuple status amjass12 10 4,071 Jul-07-2021, 10:29 AM
Last Post: amjass12
  Global Variables - Some Points Needing Clarification. adt 4 2,972 Nov-30-2019, 01:23 PM
Last Post: adt
  Clarification Hammuel 2 2,885 Oct-30-2017, 12:22 PM
Last Post: Hammuel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020