[Tutor] Moving from snippits to large projects?

2012-01-09 Thread Mike G
 How does one go from small to medium, to large, as a coder? 

You might look into contributing to an existing project.

There is a new project, MediaLocker, a Python / wxPython app recently
underway, started from a blog post. I
believe they are looking for input, including contributing - have a look.

http://www.medialocker.pythonlibrary.org/
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Issue with Python 2.7.2 - beginner needing help

2012-01-10 Thread Mike G
Hi Tonyelle

Your code doesn't work as expected due to your 2nd edition book uses
Python 3x, see page xi, 'Changes in this edition'.

This would work for your version of Python...

room = 503
print 'I am staying in room number', room

If you're new, Python 2.7.2 is (IMO) a better choice, many more
tutorials, books etc available as resources, including Gaddis's 1st
edition 'Starting Out with Python' which uses Python 2x.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Extremely simple question

2012-01-11 Thread Mike G
Hi Chris

I'm new to programming and Python myself so I would listen to the
previous guys first, and I'll repeat a bit of what has already been
mentioned...

Make sure you define 'x'. Is name really an 'int', or is it possibly a 'str'?

Fix any indentation issues.

Is there anything you can do with quotes - single or double:
print "You're not Chris!" or print 'You\'re not Chris!'

You should be able to make your code work as is but it would also look
nice in a function, passing the user 'raw_input' to a function -

def chris(name, height, weight):
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Are there other ways of solving this exercise?

2012-01-12 Thread Mike G

...Exercise 16, extra credit 3...Code from the book...like the author mentioned


The book and author, do they have a name...? Is this an exercise in refactoring?
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Clearing Python text

2012-12-14 Thread Mike G
I use Windows XP, Python 2.7, Notepad++ as my editor, and generally
run my .py files from cmd, this is how I toggle between running my .py
file after an edit (and save) and subsequently clearing the screen -
it's pretty easy.

I "arrow-up/arrow-down" on the keyboard to reprint (type) the latest
command in cmd, this toggles between running my .py file...
runs my file ... C:\Python27\MyScripts>python helloworld.py

and to clear whatever printed to the screen...
clears the screen ... C:\Python27\MyScripts>cls

Once you've typed both at the prompt just arrow up or down, then hit
enter - file run or screen cleared, as well saves time retyping.

Sorry if I missed it but this works for me because I too prefer to
print to a cleared screen, don't know why, just do.

Mike :)
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] help

2012-12-30 Thread Mike G
Hi Randy

> I am an older newbie teaching myself Python programming.
>

Me too :)

> My problem is I hear no system bell; the enter doesn't respond by quitting 
> the program;
> The problem with the program code the enter key hasn't worked in earlier 
> programs.
>
> I appreciate any advice I may recieve with this coding glitch.
>

I copied the code into a blank .py file and ran it from cmd in Windows
XP x86 using Python 273, it worked fine - including the beep. As well,
hitting "Enter" exited the program.

It sounds like (no pun intended) it may be how you're running the
program. I would use a py file and run it using cmd - holler if you
need help, you may if the path to Python isn't good to go.

Mike
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] help

2013-01-08 Thread Mike G
Hi Randy

> I am an older newbie teaching myself Python programming.
>

Me too :)

> My problem is I hear no system bell; the enter doesn't respond by quitting 
> the program;
> The problem with the program code the enter key hasn't worked in earlier 
> programs.
>
> I appreciate any advice I may recieve with this coding glitch.
>

I copied the code into a blank .py file and ran it from cmd in Windows
XP x86 using Python 273, it worked fine - including the beep. As well,
hitting "Enter" exited the program.

It sounds like (no pun intended) it may be how you're running the
program. I would use a py file and run it using cmd - holler if you
need help, you may if the path to Python isn't good to go.

Mike
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor