Python Forum
How to assign this output to a string variable?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to assign this output to a string variable?
#3
Sorry, I always get in a panic and think I can't do it! I must have an inferiority complex!

This was the first time I tried to import my own files. I am a morning person. This morning at 5am I made it work for all my modules, integrated them in my file makeWebpage.py

Works great! I had to rearrange the original file so that the paths and variables were available to the functions like makeHTML

The trick seems to be, call a function, not a whole file. Then I can do:

myString = makeHTML()

Sorry to bother you!
Reply


Messages In This Thread
RE: How to assign this output to a string variable? - by Pedroski55 - Apr-18-2019, 12:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replacing String Variable with a new String Name kevv11 2 837 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,174 Jan-10-2023, 11:26 AM
Last Post: codinglearner
  python r string for variable mg24 3 2,968 Oct-28-2022, 04:19 AM
Last Post: deanhystad
  USE string data as a variable NAME rokorps 1 1,005 Sep-30-2022, 01:08 PM
Last Post: deanhystad
  Removing Space between variable and string in Python coder_sw99 6 6,429 Aug-23-2022, 01:15 PM
Last Post: louries
  How to combine two output in one variable? ilknurg 2 1,267 Aug-01-2022, 09:31 AM
Last Post: Gribouillis
  Remove a space between a string and variable in print sie 5 1,871 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  Split string using variable found in a list japo85 2 1,351 Jul-11-2022, 08:52 AM
Last Post: japo85
  Can you print a string variable to printer hammer 2 2,009 Apr-30-2022, 11:48 PM
Last Post: hammer
Question How to convert string to variable? chatguy 5 2,566 Apr-12-2022, 08:31 PM
Last Post: buran

Forum Jump:

User Panel Messages

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