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 bef
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
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 input,
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 infinite
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
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 si
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 si
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 re
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 manual
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 wrote:
> An instructor of mine is about to teach the FIRST EVER class in Python
10 matches
Mail list logo