Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text variables won't add
#2
You do not print newfood object. Instead, a string is printed. Perhaps you need:
print('\n', newfood) # bad "formatting" but for the example is good enough
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
Text variables won't add - by st3m0n - May-30-2018, 02:58 PM
RE: Text variables won't add - by wavic - May-30-2018, 03:26 PM
RE: Text variables won't add - by Larz60+ - May-30-2018, 03:26 PM
RE: Text variables won't add - by ljmetzger - May-30-2018, 03:29 PM
RE: Text variables won't add - by j.crater - May-30-2018, 04:09 PM
RE: Text variables won't add - by st3m0n - May-30-2018, 06:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  variables from a text file vlk 2 2,292 Sep-22-2019, 06:44 PM
Last Post: vlk
  Format text and variables - more lines dan789 3 2,511 Jan-08-2019, 03:07 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