Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print (output)
#3
There are three ways:
command = "Hello World!"

print(f"my command is {command}")
print("my command is %s"%command)
print("my command is {}".format(command))
Output:
my command is Hello World! my command is Hello World! exe c:/Users/steve/Desktop/html/math/sdfdsdf.py my command is Hello World!
Reply


Messages In This Thread
print (output) - by taaperaban - Sep-03-2021, 05:58 AM
RE: print (output) - by buran - Sep-03-2021, 08:24 AM
RE: print (output) - by naughtyCat - Sep-03-2021, 09:21 AM
RE: print (output) - by deanhystad - Sep-03-2021, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python VS Code: using print command twice but not getting output from terminal kdx264 4 1,220 Jan-16-2023, 07:38 PM
Last Post: Skaperen
  How to output one value per request of the CSV and print it in another func? Student44 3 1,468 Nov-11-2022, 10:45 PM
Last Post: snippsat
  How to print the output of a defined function bshoushtarian 4 1,409 Sep-08-2022, 01:44 PM
Last Post: deanhystad
Sad Want to Save Print output in csv file Rasedul 5 11,403 Jan-11-2022, 07:04 PM
Last Post: snippsat
Photo print output none 3lnyn0 4 1,935 Nov-01-2021, 08:46 PM
Last Post: 3lnyn0
  output correction using print() function afefDXCTN 3 11,334 Sep-18-2021, 06:57 PM
Last Post: Sky_Mx
  print function output wrong with strings. mposwal 5 3,267 Feb-12-2021, 09:04 AM
Last Post: DPaul
  Print output not working xninhox 7 4,239 Jan-16-2021, 09:42 AM
Last Post: xninhox
  Output with none, print(x) in function Vidar567 3 2,599 Nov-24-2020, 05:40 PM
Last Post: deanhystad
  Print output in single file using pramika loop deepakkhw 1 2,157 Jul-11-2020, 11:57 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

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