Hello guys,
i am new to programming and trying to solve this small coding: my purpose is to
take in values from the user based on a menu provided for selection
the output looks like this...
please select from the following menu:
1. pizza
2. steak
3. pasta
4. burger
type in any number from above
Chris Angelico wrote:
> Making line breaks significant usually throws people. It took my
> players a lot of time and hints to figure this out:
> http://rosuav.com/1/?id=969
fukin' Gaston!
--
By ZeD
--
https://mail.python.org/mailman/listinfo/python-list
On 09/13/2013 12:23 PM, eamonn...@gmail.com wrote:
> On Friday, September 13, 2013 4:02:42 AM UTC+1, Michael Torrie
> wrote:
>> On 09/12/2013 10:03 AM, eamonn...@gmail.com wrote: I think your
>> hate of gui designers is about 10 years out of date now, even if
>> you still prefer not to use them.
>
On 13/9/2013 15:37, eamonn...@gmail.com wrote:
> I disagree with you. It's not hard, and I apologise if its ever sounded that
> way, but it is the fun part for me. I love spending hours(days even)
> debugging.
>
> Well, thanks all for depressing me. Time to give up programming and find
> someth
eamonn...@gmail.com writes:
> But is it efficient to use an axe?
Which criterion is more important to *you* — fun, or efficiency?
> Is it sensible to use an axe when there is a chainsaw? No.
Which criterion is more important to *you* — fun, or sensibility?
> Eventually, everyone will be using
On Fri, 13 Sep 2013 12:02:26 -0700, Abhishek Pawar wrote:
> what should i do after learning python to get more comfortable with
> python?
Write programs with Python. Lots of programs.
Even just little programs which you throw away afterwards is fine. The
important part is, write write write.
D
But is it efficient to use an axe? Is it sensible to use an axe when there is a
chainsaw? No. Eventually, everyone will be using chainsaws, and no one will be
using axes. This is my point: to have fun and be productive, but apparently
it's not possible.
--
https://mail.python.org/mailman/listin
On Fri, Sep 13, 2013 at 4:57 PM, Chris Angelico wrote:
> Evangelical vicar in want of a portable second-hand font. Would
> dispose, for the same, of a portrait, in frame, of the Bishop-elect of
> Vermont.
>
> I think you could quite easily reconstruct the formatting of that,
> based on its interna
On Fri, 13 Sep 2013 12:37:03 -0700, eamonnrea wrote:
> I disagree with you. It's not hard, and I apologise if its ever sounded
> that way, but it is the fun part for me. I love spending hours(days
> even) debugging.
>
> Well, thanks all for depressing me. Time to give up programming and find
> so
On Sat, Sep 14, 2013 at 5:32 AM, Terry Reedy wrote:
> Poetry, including that in English, often *is* concerned with formatting.
> Code is more like poetry than prose.
>
>
>> You can take this
>> paragraph of text, unwrap it, and then reflow it to any width you
>> like, without materially changing m
Thanks for the contructive critisism - :D I'll try fix it up!
--
https://mail.python.org/mailman/listinfo/python-list
On 13/09/2013 23:12, William Bryant wrote:
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote:
On 12 September 2013 07:04, William Bryant wrote:
> Thanks everyone for helping but I did listen to you :3 Sorry. This is my
code, it works, I know it's not the best way to do i
In <364bcdb3-fdd5-4774-b7d2-040e2ccb4...@googlegroups.com> William Bryant
writes:
> Hello, I've done this so far but why doesn't the mode function work?
> def mode():
> global NumberOfXItems, Themode
> for i in List:
> NumberOfXItems.append(i)
> NumberOfXItems.append(Lis
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote:
> On 12 September 2013 07:04, William Bryant wrote:
>
> > Thanks everyone for helping but I did listen to you :3 Sorry. This is my
> > code, it works, I know it's not the best way to do it and it's the long way
> > round b
On Friday, September 13, 2013 8:50:13 PM UTC+1, Joe Junior wrote:
> On 13 September 2013 16:37, wrote:
>
> > I disagree with you. It's not hard, and I apologise if its ever sounded
> > that way, but it is the fun part for me. I love spending hours(days even)
> > debugging.
>
> >
>
> > Well,
On Friday, September 13, 2013 8:56:15 PM UTC+1, Neil Cerutti wrote:
> On 2013-09-13, Joe Junior wrote:
>
> > On 13 September 2013 15:39, John Gordon wrote:
>
> >> In <76784bad-cd6d-48f9-b358-54afb2784...@googlegroups.com>
>
> >> eamonn...@gmail.com writes:
>
> >>> they're making programming e
On 2013-09-13, Joe Junior wrote:
> On 13 September 2013 15:39, John Gordon wrote:
>> In <76784bad-cd6d-48f9-b358-54afb2784...@googlegroups.com>
>> eamonn...@gmail.com writes:
>>> they're making programming easier... by not coding as much.
>>> Oh well, guess coding is dead :(
>>
>> Pressing keys o
On 13 September 2013 16:37, wrote:
> I disagree with you. It's not hard, and I apologise if its ever sounded that
> way, but it is the fun part for me. I love spending hours(days even)
> debugging.
>
> Well, thanks all for depressing me. Time to give up programming and find
> something else to
On Saturday, September 14, 2013 12:45:56 AM UTC+5:30, Ben Finney wrote:
> Abhishek Pawar writes:
>
>
>
> > what should i do after learning python to get more comfortable with
>
> > python?
>
>
>
> Welcome! Congratulations on finding Python.
>
>
>
> Get comfortable with Python by spending
On Saturday, September 14, 2013 12:45:56 AM UTC+5:30, Ben Finney wrote:
> Abhishek Pawar writes:
>
>
>
> > what should i do after learning python to get more comfortable with
>
> > python?
>
>
>
> Welcome! Congratulations on finding Python.
> thanks you inspire me
>
>
> Get comfortable wi
On 9/13/2013 9:27 AM, Kevin Walzer wrote:
On 9/11/13 4:55 PM, eamonn...@gmail.com wrote:
Tkinter -- Simple to use, but limited
With the themed widget introduced in Tk 8.5, Tkinter is now a peer to
the other GUI toolkits in most respects, surpasses them in some (canvas
widget), and lags behind
what should i do after learning python to get more comfortable with python?
--
https://mail.python.org/mailman/listinfo/python-list
I disagree with you. It's not hard, and I apologise if its ever sounded that
way, but it is the fun part for me. I love spending hours(days even) debugging.
Well, thanks all for depressing me. Time to give up programming and find
something else to do with my life.
--
https://mail.python.org/mai
Abhishek Pawar writes:
> what should i do after learning python to get more comfortable with
> python?
Welcome! Congratulations on finding Python.
Get comfortable with Python by spending time working through beginner
documentation http://wiki.python.org/moin/BeginnersGuide> and doing
all the ex
On 9/13/2013 7:16 AM, Chris Angelico wrote:
On Fri, Sep 13, 2013 at 8:13 PM, Steven D'Aprano
wrote:
On Fri, 13 Sep 2013 09:04:06 +0200, Antoon Pardon wrote:
Not only that. There are a lot of python code snippets on the net that
for whatever reason lost their indentation. There is no algorithm
On 13/09/2013 20:02, Abhishek Pawar wrote:
what should i do after learning python to get more comfortable with python?
There's really nothing better than practice, so start writing something
that will be interesting or useful to you. It doesn't have to be
amazing! :-)
--
https://mail.python.or
On 13 September 2013 15:39, John Gordon wrote:
> In <76784bad-cd6d-48f9-b358-54afb2784...@googlegroups.com>
> eamonn...@gmail.com writes:
>
>> they're making programming easier... by not coding as much. Oh well,
>> guess coding is dead :(
>
> Pressing keys on a keyboard was never the hard part of
In <76784bad-cd6d-48f9-b358-54afb2784...@googlegroups.com> eamonn...@gmail.com
writes:
> they're making programming easier... by not coding as much. Oh well,
> guess coding is dead :(
Pressing keys on a keyboard was never the hard part of coding.
--
John Gordon A is for Amy,
On Friday, September 13, 2013 4:02:42 AM UTC+1, Michael Torrie wrote:
> On 09/12/2013 10:03 AM, eamonn...@gmail.com wrote:
>I think your hate of gui designers is about 10 years out of date now,
> even if you still prefer not to use them.
So, you are recommending not to code as much? :'( That is w
Enthought.traits !! http://code.enthought.com/projects/traits/
I started using traits a couple of months ago and I really like it.
Traits provides a framework which creates a UI based on your data structures.
Using some "hints" you can do anything you want. Just check out their website
and try t
Hi,
I have a traits application with a tabbed group:
Group(
Group(label="a", dock='tab'),
Group(label="b", dock='tab'),
layout='tabbed')
Beneath the tabbed group, there is button which should perform some action
depending on the selected tab.
So I would like to know which of both tabs, 'a' or '
I don't like the idea of being able to drag and drop anything in the
programming world. Outside of that, I use D&D programs a lot. I got into GUI
programming because I thought that I could get away from them, but I guess not.
Maybe I'm against them because if I can't code, I don't have anything
On Fri, Sep 13, 2013, at 10:38, stephen.bou...@gmail.com wrote:
> > Hm, that gives me a "Type str doesn't support the buffer API" message.
>
> Aha, I need to use str(s, encoding='utf8').rstrip('\0').
It's not a solution to your problem, but why aren't you using
CF_UNICODETEXT, particularly if you
On 09/13/2013 08:24 AM, Peter Otten wrote:
> Anthony Papillion wrote:
>
>> And I get a traceback that says: No JSON object could be decoded. The
>> specific traceback is:
>>
>> Traceback (most recent call last):
>> File "coinbase_bot.py", line 31, in
>> getCurrentBitcoinPrice()
>> File "c
On 2013-09-13, stephen.bou...@gmail.com wrote:
> On Thursday, September 12, 2013 10:43:46 PM UTC-5, Neil Hodgson wrote:
>> Stephen Boulet:
>>
>>
>>
>> > From the clipboard contents copied from the spreadsheet, the characters
>> > s[:80684] were the visible cell contents, and s[80684:] all sta
On Friday, September 13, 2013 9:31:45 AM UTC-5, stephen...@gmail.com wrote:
> On Thursday, September 12, 2013 10:43:46 PM UTC-5, Neil Hodgson wrote:
>
> > Stephen Boulet:
>
> >
>
> >
>
> >
>
> > > From the clipboard contents copied from the spreadsheet, the characters
> > > s[:80684] were
In Anthony Papillion
writes:
> I'm still working to get my head around JSON and I thought I'd done so
> until I ran into this bit of trouble. I'm trying to work with the
> CoinBase API. If I type this into my browser:
> https://coinbase.com/api/v1/prices/buy
> I get the following JSON returne
On Thursday, September 12, 2013 10:43:46 PM UTC-5, Neil Hodgson wrote:
> Stephen Boulet:
>
>
>
> > From the clipboard contents copied from the spreadsheet, the characters
> > s[:80684] were the visible cell contents, and s[80684:] all started with
> > "b'\x0" and lack any useful info for what
Anthony Papillion wrote:
> Hello Again Everyone,
>
> I'm still working to get my head around JSON and I thought I'd done so
> until I ran into this bit of trouble. I'm trying to work with the
> CoinBase API. If I type this into my browser:
>
> https://coinbase.com/api/v1/prices/buy
>
> I get th
On 9/11/13 4:55 PM, eamonn...@gmail.com wrote:
Tkinter -- Simple to use, but limited
With the themed widget introduced in Tk 8.5, Tkinter is now a peer to
the other GUI toolkits in most respects, surpasses them in some (canvas
widget), and lags behind in just two areas: printing (several
pla
Hello Again Everyone,
I'm still working to get my head around JSON and I thought I'd done so
until I ran into this bit of trouble. I'm trying to work with the
CoinBase API. If I type this into my browser:
https://coinbase.com/api/v1/prices/buy
I get the following JSON returned
{"subtotal":{"amo
On Fri, Sep 13, 2013 at 10:31 PM, Jean-Michel Pichavant
wrote:
> - Original Message -
>> I would use something like fabric to automatically login to hosts via
>> ssh then parse the data myself to generate static HTML pages in a
>> document root.
>>
>> Having a web app execute remote comman
- Original Message -
> I would use something like fabric to automatically login to hosts via
> ssh then parse the data myself to generate static HTML pages in a
> document root.
>
> Having a web app execute remote commands on a server is so wrong in
> many ways.
Such as ?
JM
-- IMPORTA
Op 13-09-13 12:13, Steven D'Aprano schreef:
> On Fri, 13 Sep 2013 09:04:06 +0200, Antoon Pardon wrote:
>
>> Op 10-09-13 12:20, Chris Angelico schreef:
>>> On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano
>>> wrote:
What design mistakes, traps or gotchas do you think Python has?
Gotchas
On Fri, Sep 13, 2013 at 8:13 PM, Steven D'Aprano
wrote:
> On Fri, 13 Sep 2013 09:04:06 +0200, Antoon Pardon wrote:
>
>> Op 10-09-13 12:20, Chris Angelico schreef:
>>> On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano
>>> wrote:
What design mistakes, traps or gotchas do you think Python has?
>
Le 13/09/2013 02:33, Mohsen Pahlevanzadeh a écrit :
Dear all,
QtCore.QObject.connect(self.checkBox,
QtCore.SIGNAL(_fromUtf8("clicked(bool)")), lambda:
self.interfaceCodesConstructor.setFilterList(self,"name",self.lineEdit.text()))
I code pyqt, I have the following code:
///
Roy Smith wrote:
> http://xkcd.com/1263/
So now I guess someone has to actually implement the script. At least,
that's (sort of) what happened for xkcd 353 so there's a precedent.
--
Duncan Booth http://kupuguy.blogspot.com
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 13 Sep 2013 09:04:06 +0200, Antoon Pardon wrote:
> Op 10-09-13 12:20, Chris Angelico schreef:
>> On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano
>> wrote:
>>> What design mistakes, traps or gotchas do you think Python has?
>>> Gotchas are not necessarily a bad thing, there may be good re
On Fri, Sep 13, 2013 at 3:08 PM, Steven D'Aprano
wrote:
> For example, take intersection of two sets s and t. It is a basic
> principle of set intersection that s&t == t&s.
Note that, while this is true, the two are not actually identical:
>>> set1 = {0,1,2}
>>> set2 = {0.0,1.0,3.0}
>>> set1&set
Op 10-09-13 12:20, Chris Angelico schreef:
> On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano wrote:
>> What design mistakes, traps or gotchas do you think Python has? Gotchas
>> are not necessarily a bad thing, there may be good reasons for it, but
>> they're surprising.
>
> Significant indentat
50 matches
Mail list logo