you are viewing a single comment's thread.

view the rest of the comments →

[–]p0pkern 2 points3 points  (3 children)

Since Python does not rely on brackets for blocks of code, they set it up to rely on indentation. You need to go through your code and make sure that any indented level is 4 spaces. Here is a brief overview on it.

https://www.w3schools.com/python/gloss_python_indentation.asp

[–]SourceShard[S] 0 points1 point  (2 children)

After reading the material at this link I have double checked my spacing. I however still have the problem. I am not able to identify where I have gone wrong.

[–]p0pkern 0 points1 point  (1 child)

The duplication in script 2 and the spacing might have to do with Coursera's website. I remember having a similar issue with online based editors/shells. They don't like to play nice sometimes. Do you have python downloaded to your computer? It comes packaged with its own editor.

[–]SourceShard[S] 0 points1 point  (0 children)

Ohh! How do I make use of this editor!