Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is this good style?
#1
Just want to know whether this is good style:

print("The length of your string is {} characters.".format(
      len(input("Enter a string: "))))
Also, is this a statement or an expression? I always get confused about those two.
Reply


Messages In This Thread
Is this good style? - by league55 - Jan-14-2018, 03:36 PM
RE: Is this good style? - by wavic - Jan-14-2018, 04:03 PM
RE: Is this good style? - by metulburr - Jan-14-2018, 04:05 PM
RE: Is this good style? - by Gribouillis - Jan-14-2018, 04:25 PM

Forum Jump:

User Panel Messages

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