Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with simple program
#3
Hi, Python error messages are usually pretty clear and give good hints, as is the case in your situation.
Code inside for block (and other blocks for that matter) needs to be indented one level, meaning you need to add 4 spaces before print.
This can be hard to notice if you write directly into an interpreter. I recommend writing code in a text editor and running it as a Python script.
Reply


Messages In This Thread
help with simple program - by juanb007 - Dec-07-2017, 02:10 PM
RE: help with simple program - by buran - Dec-07-2017, 02:14 PM
RE: help with simple program - by j.crater - Dec-07-2017, 02:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Suggestions for a simple data analysis program t4keheart 0 1,794 Mar-08-2021, 03:45 PM
Last Post: t4keheart
  logging in simple program Inkanus 1 1,726 Dec-18-2020, 02:36 PM
Last Post: snippsat
  Newbie needs help with a simple program feynarun 3 2,321 Jan-15-2020, 01:17 PM
Last Post: DeaD_EyE
  Python Program to Make a Simple Calculator jack_sparrow007 2 10,205 Oct-19-2018, 08:32 AM
Last Post: volcano63
  a 'simple' program, hard as .... to understand meems 3 5,192 Dec-04-2016, 10:59 PM
Last Post: meems

Forum Jump:

User Panel Messages

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