Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54434

Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

Newsgroups comp.lang.python
Date 2013-09-19 11:46 -0700
Message-ID <22b99b0a-598f-4500-9de9-5041c2ce2c8f@googlegroups.com> (permalink)
Subject Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?
From William Bryant <gogobebe2@gmail.com>

Show all headers | View raw


the word 'def' has  squiggily lines but the program works fine. It says: Syntax Error: expected an indented block. - why?

def restart():
    print("""

    ~~~~~~~~~~~~~~~~

    Cacluation DONE!

    ~~~~~~~~~~~~~~~~

    """)
    restart = input("\nEnter yes if you want to make a new list and no if you want to close the program (yes/no):  ")
    restart
    if restart == "yes" or restart == "y" or restart == "new list":
        print("You want make a new list...\n")
        time.sleep(1)
        NOS()
    elif restart == "no" or restart == "n" or restart == "close":
        print("Goodbye!")
        time.sleep(1)
        print("Goodbye!")
        time.sleep(1)
        print("Goodbye!")
        time.sleep(1)
        print("Goodbye!")
        time.sleep(1)
        print("Goodbye!")
        time.sleep(1)
        quit()
    else:
        print("type y or n")
        time.sleep(0.5)
        restart()

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? William Bryant <gogobebe2@gmail.com> - 2013-09-19 11:46 -0700
  Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? John Gordon <gordon@panix.com> - 2013-09-19 18:51 +0000
    Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? patrick vrijlandt <patrick.vrijlandt@gmail.com> - 2013-09-19 19:08 +0000
  Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Ian Kelly <ian.g.kelly@gmail.com> - 2013-09-19 13:01 -0600
  Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Dave Angel <davea@davea.name> - 2013-09-19 20:18 +0000
  Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Ian Kelly <ian.g.kelly@gmail.com> - 2013-09-19 17:09 -0600
    Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? William Bryant <gogobebe2@gmail.com> - 2013-09-20 00:01 -0700
      Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? William Ray Wing <wrw@mac.com> - 2013-09-20 09:04 -0400
      Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Duncan Booth <duncan.booth@invalid.invalid> - 2013-09-20 13:39 +0000
        Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? William Bryant <gogobebe2@gmail.com> - 2013-09-20 22:59 -0700
        Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? William Bryant <gogobebe2@gmail.com> - 2013-09-20 23:07 -0700
          Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-21 10:25 +0000
          Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Dave Angel <davea@davea.name> - 2013-09-21 12:53 +0000
          Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? MRAB <python@mrabarnett.plus.com> - 2013-09-21 17:18 +0100
          Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? Dave Angel <davea@davea.name> - 2013-09-21 18:09 +0000
      Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it? alex23 <wuwei23@gmail.com> - 2013-09-23 10:39 +1000

csiph-web