Python Forum
Compiles Python code with no error but giving out no output - what's wrong with it?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiles Python code with no error but giving out no output - what's wrong with it?
#3
(Mar-27-2023, 05:13 AM)perfringo Wrote: It’s not giving output because you never call the function.


So does that mean I need to insert this line in the code?

print("The predicted next string is", predict_next_string(database))
Was that correct?
That calls up the function and the database, right?
Reply


Messages In This Thread
RE: Compiles Python code with no error but giving out no output - what's wrong with it? - by pythonflea - Mar-27-2023, 05:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in output of a snippet code akbarza 2 443 Feb-28-2024, 07:15 PM
Last Post: deanhystad
  Error with output djprasanna 1 649 Nov-28-2023, 06:40 PM
Last Post: deanhystad
  I have a code which is very simple but still I cannot detect what's wrong with it max22 1 561 Nov-07-2023, 04:32 PM
Last Post: snippsat
  Receiving this error in my "response" and causes script to return wrong status cubangt 18 2,340 Aug-13-2023, 12:16 AM
Last Post: cubangt
  Wrong type error rowan_bradley 6 1,385 Aug-07-2023, 10:44 AM
Last Post: rowan_bradley
  Code error from Fundamentals of Python Programming van Richard L. Halterman Heidi 12 1,873 Jul-25-2023, 10:32 PM
Last Post: Skaperen
  Syntax error while executing the Python code in Linux DivAsh 8 1,865 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Something wrong with my code FabianPruitt 5 932 Jul-03-2023, 10:55 PM
Last Post: Pedroski55
  Video recording with Raspberry Pi - What´s wrong with my python code? Montezuma1502 3 1,355 Feb-24-2023, 06:14 PM
Last Post: deanhystad
  I cannot able to see output of this code ted 1 803 Feb-22-2023, 09:43 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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