Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print statements without ()
#1
I have been findiing sites that include examples that have print ststements that don't use (), they use "".
When I try to execute these examples they fail unless I wrap () around them. Then I think they are still not performing as the author intended.
These all have to do with html webpages that execute cgi files that execute python code.

In particular webpages with radio buttons. Here are some links to such examples:
First Example

Second Example

And there are more.

What am I missing?
I'm not going to live long enough to do all I want to do.
Reply


Messages In This Thread
print statements without () - by petec - Jun-16-2022, 03:58 AM
RE: print statements without () - by ndc85430 - Jun-16-2022, 04:48 AM
RE: print statements without () - by snippsat - Jun-16-2022, 04:58 AM
RE: print statements without () - by Gribouillis - Jun-16-2022, 05:34 AM
RE: print statements without () - by snippsat - Jun-16-2022, 02:48 PM
RE: print statements without () - by Gribouillis - Jun-16-2022, 03:49 PM
RE: print statements without () - by petec - Jun-17-2022, 01:45 AM
RE: print statements without () - by snippsat - Jun-17-2022, 02:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to combine print statements in for loop adeana 2 2,030 Jun-12-2020, 05:08 PM
Last Post: adeana
  If-Print statements on the same line ClassicalSoul 1 2,294 Jan-31-2019, 02:14 PM
Last Post: buran
  How to execute a string with multiple sqlite statements and print results? shanepy 0 2,283 Nov-20-2018, 10:19 PM
Last Post: shanepy

Forum Jump:

User Panel Messages

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