Subj : Re: Python
To : Nightfox
From : Mortifis
Date : Mon Dec 10 2018 10:35 am
> Re: Python
> By: Mortifis to All on Sun Dec 09 2018 01:40 pm
> Mo> Anyone into Python? I have a few questions relating to nested loops
> I've done a bit of Python for work.
Seems Python is very finicky about use of proper indentation :/ I am (trying)
to code some random light sequences for use with my Raspberry Pi, mostly works,
however, when I try to set a while ... for ... try while ... blah blah blah it
complains about indentation. when I remove the first x = 0 ... while x < cycle:
x = x + 1 it seems to work correctly.
here is my spaghetti code:
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import random
import mutagen.mp3
import sys