Python Forum
Beginner trying to run simple code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner trying to run simple code
#4
On the items you have tried (you may have to re-try), please include all error output.
Your number of arguments is correct (program looks for three, 1st one is always the program name)
The order is input file name, output file name
You could place print statements in various strategic locations to see if data looks appropriate,
for example:
  • After line 15 add
    print('line: {}'.format(line))
  • After line number 19
    print('tokens: {}'.format(tokens))
  • etc.
Copy all penitent data (only small sample of large data, please) and report your findings.
Reply


Messages In This Thread
Beginner trying to run simple code - by joebone - Feb-02-2018, 09:06 PM
RE: Beginner trying to run simple code - by buran - Feb-02-2018, 09:13 PM
RE: Beginner trying to run simple code - by Larz60+ - Feb-02-2018, 09:15 PM
RE: Beginner trying to run simple code - by Larz60+ - Feb-02-2018, 09:22 PM
RE: Beginner trying to run simple code - by joebone - Feb-02-2018, 09:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Very Beginner question on simple variables Harvy 1 299 Apr-12-2024, 12:03 AM
Last Post: deanhystad
  Help with simple code JacobSkinner 1 434 Mar-18-2024, 08:08 PM
Last Post: deanhystad
  I have a code which is very simple but still I cannot detect what's wrong with it max22 1 551 Nov-07-2023, 04:32 PM
Last Post: snippsat
  Beginner: Code not work when longer list raiviscoding 2 901 May-19-2023, 11:19 AM
Last Post: deanhystad
  help me simple code result min and max number abrahimusmaximus 2 976 Nov-12-2022, 07:52 AM
Last Post: buran
  A simple "If...Else" question from a beginner Serena2022 6 1,829 Jul-11-2022, 05:59 AM
Last Post: Serena2022
  Simple encoding code ebolisa 3 1,535 Jun-18-2022, 10:59 AM
Last Post: deanhystad
  How would you (as an python expert) make this code more efficient/simple coder_sw99 3 1,870 Feb-21-2022, 10:52 AM
Last Post: Gribouillis
  Simple code question about lambda and tuples JasPyt 7 3,474 Oct-04-2021, 05:18 PM
Last Post: snippsat
  My simple code don't works !! Nabi666 1 1,647 Sep-06-2021, 12:10 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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