Python Forum
variable prints without being declared.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
variable prints without being declared.
#3
(Jul-11-2021, 12:05 AM)deanhystad Wrote: var is not printing, the str "Hello" is printing. The value of var is None because that is the value returned by the print function.

Thanks for that. I figured it out thanks to you.
Reply


Messages In This Thread
RE: variable prints without being declared. - by ClockPillow - Jul-11-2021, 12:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  zfill prints extra et the end of a var tester_V 4 967 Mar-24-2023, 06:59 PM
Last Post: tester_V
  Output prints Account.id at the end? LastStopDEVS 5 2,881 Dec-19-2020, 05:59 AM
Last Post: buran
  When I print a key from dict it prints it but when I try to assign it to a variable I stefanvelikov 3 2,409 Nov-27-2020, 01:29 PM
Last Post: stefanvelikov
  Try/Exept prints only ones tester_V 11 4,041 Nov-03-2020, 02:38 AM
Last Post: tester_V
  loop only prints last character. mcmxl22 1 1,762 Feb-17-2020, 02:36 AM
Last Post: menator01
  Binding not explicitly declared happening karkas 4 2,940 Aug-05-2019, 05:09 PM
Last Post: karkas
  zip file variable prints <zipfile.ZipFile object at 0x7f83fd13bd90> ? Rsh 9 4,293 Jun-27-2019, 02:00 PM
Last Post: Rsh
  can you understand why this code prints None? arcbal 2 2,809 Mar-13-2019, 02:57 AM
Last Post: arcbal
  What for a file that prints nothing sylas 1 2,221 Sep-12-2018, 01:18 PM
Last Post: gruntfutuk
  How to call a variable declared in a function in another python script lravikumarvsp 2 2,997 Jun-04-2018, 08:45 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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