Python Forum
How do I put a variable inside a String in Python?
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I put a variable inside a String in Python?
#5
(Sep-24-2018, 04:12 PM)evilcode1 Wrote: : "wmic process where processId={}get name | findstr /v Name".format(tmp) ===> work in python 2.7 but ignore ( get name | findstr /v Name )
What does that mean? It works?
Reply


Messages In This Thread
RE: How do I put a variable inside a String in Python? - by nilamo - Sep-24-2018, 04:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable being erased inside of if statement deusablutum 8 585 Jun-15-2024, 07:00 PM
Last Post: ndc85430
  Variable definitions inside loop / could be better? gugarciap 2 604 Jan-09-2024, 11:11 PM
Last Post: deanhystad
  How to create a variable only for use inside the scope of a while loop? Radical 10 2,484 Nov-07-2023, 09:49 AM
Last Post: buran
  Replacing String Variable with a new String Name kevv11 2 927 Jul-29-2023, 12:03 PM
Last Post: snippsat
  Need help on how to include single quotes on data of variable string hani_hms 5 2,449 Jan-10-2023, 11:26 AM
Last Post: codinglearner
  python r string for variable mg24 3 3,319 Oct-28-2022, 04:19 AM
Last Post: deanhystad
  USE string data as a variable NAME rokorps 1 1,074 Sep-30-2022, 01:08 PM
Last Post: deanhystad
  Removing Space between variable and string in Python coder_sw99 6 6,631 Aug-23-2022, 01:15 PM
Last Post: louries
  Remove a space between a string and variable in print sie 5 2,003 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  Split string using variable found in a list japo85 2 1,454 Jul-11-2022, 08:52 AM
Last Post: japo85

Forum Jump:

User Panel Messages

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