Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brand new to programming
#2
Are you sure you ran it in version 3.7? That's the behavior you would expect running it in 2.7 or earlier. Then print was a statement like return, and didn't need parentheses. So putting the parentheses makes it think you want to print a tuple.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Brand new to programming - by joelarrabee - Sep-17-2018, 12:57 AM
RE: Brand new to programming - by ichabod801 - Sep-17-2018, 01:23 AM
RE: Brand new to programming - by joelarrabee - Sep-17-2018, 01:47 AM
RE: Brand new to programming - by ichabod801 - Sep-17-2018, 02:03 AM
RE: Brand new to programming - by pcsailor - Sep-17-2018, 03:03 AM
RE: Brand new to programming - by joelarrabee - Sep-17-2018, 03:16 AM

Forum Jump:

User Panel Messages

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