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


Groups > comp.lang.python > #54533

Re: 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-20 23:07 -0700
References (1 earlier) <CALwzidku1WQ0-+icfE+J8CjVNg4GEH4EF2Pf6cB8nCKyhDAfhQ@mail.gmail.com> <CAJsdK=JAY8gSxTyMVN+Ac2u_cwmY2PYwrTyQw1i43tPRJ+ymtw@mail.gmail.com> <mailman.168.1379632193.18130.python-list@python.org> <24104d3b-ad83-4c15-bb9e-77b61a0bac78@googlegroups.com> <XnsA241951725F1Cduncanbooth@127.0.0.1>
Message-ID <5398c4af-1692-4b7f-9f39-ea392d24199b@googlegroups.com> (permalink)
Subject Re: 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


On Saturday, September 21, 2013 1:39:41 AM UTC+12, Duncan Booth wrote:
> William Bryant <gogobebe2@gmail.com> wrote:
> 
> 
> 
> > Thanks a lot! I have one more question, is there any way I can make my
> 
> > program work on android tablets and ipads? Because I'd like to use it
> 
> > in school because we are learning statistics and we are allowed our
> 
> > devices in school. 
> 
> > 
> 
> 
> 
> You can install SL4A on Android and that should let you run your script on 
> 
> an Android tablet. You may want to modify the script to work with the 
> 
> android UI, or it might be enough just to run it in a terminal window.
> 
> 
> 
> I don't believe there is an ipad equivalent, but so long as you have a 
> 
> network connection, another option to consider (that would work on both 
> 
> android and ipad) would be to run the script on a server somewhere and 
> 
> connect to it through a web browser. Have a look at https://c9.io as that 
> 
> gives you a full development environment that can be accessed through a web 
> 
> browser: I don't know how well it works on a tablet but it would be worth 
> 
> trying.
> 
> 
> 
> 
> 
> -- 
> 
> Duncan Booth http://kupuguy.blogspot.com

Ok thanks for that, I know I said one more question, but could you pleasse help me here:

def median():
    medlist = List
    medlist.sort()
    if len(medlist) % 2:
        while len(medlist) > 2:
            medlist.popleft()
            medlist.popright()
        if medlist[0] == medlist[1]:
            themedian = medlist
        elif medlist[0] != medlist[1]:
            #make an if statment to figure out the median if the last 2 left are not the same. Eg [1, 2] the middle value is 1.5
            pass
    else:
        while len(medlist) > 1:
            medlist.popleft()
            medlist.popright()
        themedian = medlist
    return themedian

It says out of range and i don't know how I am going to make an if statment to figure out the median if the last 2 left are not the same. Eg [1, 2] the middle value is 1.5. Thanks - I am 13 year old beginner in python and i am trying to finish the tutorial on code academy and read the docs. :)

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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