Python Forum
I get "None" at the end of my printed result.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I get "None" at the end of my printed result.
#3
str_analysys has empty return statement at the end so it will return None. Even without explicit return any function will return None if you don't specify return value. You assign that to check
when you run your function it print respective message and return None. on line 18 you print that None
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: I get "None" at the end of my printed result. - by buran - Sep-06-2019, 05:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Exception printed twice rwestebbe 2 947 Sep-02-2024, 09:45 PM
Last Post: DeaD_EyE
  coma separator is printed on a new line for some reason tester_V 4 1,611 Feb-02-2024, 06:06 PM
Last Post: tester_V
  How can histogram bins be separated and reduce number of labels printed on x-axis? cadena 1 2,092 Sep-07-2022, 09:47 AM
Last Post: Larz60+
  Reverse printed words hindubiceps 7 4,543 Apr-21-2020, 05:19 PM
Last Post: deanhystad
  bytes not being printed as expected Skaperen 2 3,716 Aug-27-2019, 05:33 AM
Last Post: Skaperen
  Change linenumber and filename printed in exceptions like #line in C kryptomatrix 2 3,642 Jul-12-2019, 06:01 AM
Last Post: Gribouillis
  Putting an array for each string that is printed to a loop ClaudioSimonetti 1 3,067 Feb-05-2019, 12:52 PM
Last Post: perfringo
  Why A will be printed twice in the picture Shen 3 5,172 Jul-25-2018, 01:16 PM
Last Post: stranac
  0 error but Not printed Piqurs 5 5,360 Jul-14-2018, 04:43 PM
Last Post: buran
  [Variable as a String]>EscaSpecial characters printed CSA75 4 5,347 Mar-28-2017, 11:59 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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