[Tutor] Best way to write this countdown code

2019-01-12 Thread Joseph Gulizia
Thanks in advance as I've gotten wordy. I want to integrate the following working code into a website: beef_quantity = 28 ## Set before campaign starts. print('Original Beef Quantity: ') ## Displays the wording "Original Beef Quantity: " print (beef_quantity) ## Displays the beef quantity

Re: [Tutor] Request for help with code

2018-11-06 Thread Joseph Gulizia
Funny using a text editorand showed indented in my browser. Won't bother the list again. On Tue, Nov 6, 2018, 17:32 Joel Goldstick On Tue, Nov 6, 2018 at 6:17 PM Joseph Gulizia > wrote: > > > > Apologies for earlier errors when asking for help -- I am hopeful that >

Re: [Tutor] Request for help with code

2018-11-06 Thread Joseph Gulizia
Apologies for earlier errors when asking for help -- I am hopeful that this shortened post displays properly: The code is Python 2... trying to solve why loop doesn't stop at given number of integersif I input request for 3 integersit keeps asking for integer1...and keeps asking for

[Tutor] Request for help with code

2018-11-06 Thread Joseph Gulizia
I'm using the bookazine "The Python Book" First Edition on pages 13-14 it gives the code (listed further below). It asks for user to state a given number of integers (for example 4)...then user enters integers. It doesn't stop seeking input after the number requested thereby creating an

[Tutor] Complications Take Two (Long) Frustrations.

2015-08-19 Thread Joseph Gulizia
Complicating a simple expression Coding Exercise: Complication Assume that the grader defines two variables A and B for you. Write a program which prints out the value min(A, B) However, there is a catch: your program is not allowed to use the min function. Instead, use max in a clever way to

[Tutor] Complications (Long) and Complicatiing Simple both Solved....

2015-08-19 Thread Joseph Gulizia
Original = -1 * max(-A, -B) print (Original) or max = -max(-A,-B) print(max) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Complicating a simple expression (Python 3)

2015-08-16 Thread Joseph Gulizia
Complicating a simple expression Coding Exercise: Complication Assume that the grader defines two variables A and B for you. Write a program which prints out the value min(A, B) However, there is a catch: your program is not allowed to use the min function. Instead, use max in a clever way to

Re: [Tutor] Python Book recomandation!

2010-07-15 Thread Joseph Gulizia
I've found Snake Wrangling for Kids http://code.google.com/p/swfk/ by Jason Biggs an easy, fun and understandable free e-book. I also have started reading Head First Programming from O'Reilly which teaches programming using Python. I have others also but those two have been the easiest to read.

Re: [Tutor] Fwd: Learning python using Michael Dawson's book

2010-05-19 Thread Joseph Gulizia
I posted this two days ago (I thought to the list...but apparently not). I'm hopeful it helps in some way. I have the same book. Using a text editor and the underscore and dash keys and a few others...the program example is creating an ASCII art version on the words Game Over. Type it

Re: [Tutor] An interesting situation befalls me

2010-05-09 Thread Joseph Gulizia
As a new learner of programming I'd recommend Head First Programming A learner's guide to programming, using the Python language by O'Reilly. It is very basic. Joe On Sat, May 8, 2010 at 4:31 PM, Kirk Z Bailey kbai...@howlermonkey.netwrote: An instructor of mine is about to teach the