Alan Gauld via Tutor wrote:
> On 26/10/2018 18:45, Alan Gauld via Tutor wrote:
>
>> It woiyukld
>
> No idea what happened there. Should be "would" of course!
Of coiyukrse! Nobody thoiyukght otherwiiyske :)
___
Tutor maillist - Tutor@python.org
To u
On 26/10/2018 18:20, Adam Eyring wrote:
> beef = (beefmeals * 15.95)
Note that the parens here are completely redundant.
They don't break anything but neither do they
contribute anything.
WE already have LISP(*) for those who love parens,
no need for (so many of) them in Python
(*)Lots of Irrel
On 26/10/2018 18:45, Alan Gauld via Tutor wrote:
> It woiyukld
No idea what happened there. Should be "would" of course!
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/p
On Fri, Oct 26, 2018 at 3:03 PM Bob Gailer wrote:
> On Oct 26, 2018 1:20 PM, "Adam Eyring" wrote:
> >
> > Try this cleaned up version with colons in the right places, dollar
> signs removed, and other corrections:
>
> Does it do what you want?
>
> > beefmeals=int(input("Enter number of beef meal
Try this cleaned up version with colons in the right places, dollar signs
removed, and other corrections:
beefmeals=int(input("Enter number of beef meals: "))
shitmeals=int(input("Enter number of vegan meals: "))
party = beefmeals + shitmeals
print("Total meals", party)
a = 0
b = 0
c = 0
if party
On Oct 26, 2018 1:20 PM, "Adam Eyring" wrote:
>
> Try this cleaned up version with colons in the right places, dollar signs
removed, and other corrections:
Does it do what you want?
> beefmeals=int(input("Enter number of beef meals: "))
> shitmeals=int(input("Enter number of vegan meals: "))
> p
On 26/10/2018 12:33, Asad wrote:
> Hi ,
>
> Yes i have the code :
It woiyukld help us to help you if you provided some clues as to what it
was doing.
A good start would be some comments - especially around the regexes.
Don't make us parse them without some idea of what you are expecting.
Also mor
Hi ,
Yes i have the code :
import re
import datetime
from datetime import timedelta
Header = "*"
f3 = open ( r"D:\QI\logA.txt", 'r' )
string = f3.read ()
regex = re.compile ( "\n" )
st = regex.sub ( " ", string )
st1 = st.split ( " " )
if re.
On Oct 26, 2018 6:11 AM, "Ben Placella" wrote:
>
> I need to write code that runs a cost calculating program with many
> different variables and I honestly don't understand it
Could you be more specific? What exactly don't you understand, or even
better what do you understand?
my code is:
How
On 25/10/2018 23:14, Ben Placella wrote:
Please always post code in plain text not HTML or Rich text.
Otherwise we lose all the formatting which is important in Python.
> beefmeals=int(input("Enter number of beef meals: "))
> shitmeals=int(input("Enter number of vegan meals: "))
> party=beefmeals
On Thu, Oct 25, 2018 at 06:13:31PM -0400, Ben Placella wrote:
> So I have to make a fibonacci sequence, and I'm not sure what is wrong with
> my code
[...]
> attached is a photo of what the output SHOULD look like
No it isn't. For security (anti-spam, anti-virus) reasons, this mailing
list delet
On Thu, Oct 25, 2018 at 06:14:41PM -0400, Ben Placella wrote:
> I need to write code that runs a cost calculating program with many
> different variables and I honestly don't understand it, my code is:
> beefmeals=int(input("Enter number of beef meals: "))
> shitmeals=int(input("Enter number of ve
Plain text is preferred for code since otherwise the mail
system removes all indentation making the code hard to understand.
On 25/10/2018 23:13, Ben Placella wrote:
> So I have to make a fibonacci sequence, and I'm not sure what is wrong with
> my code
> #This program illustrates the fibonacci se
nth = n1 + n
I don't see where n is defined anywhere. Should be n2?
On Fri, Oct 26, 2018 at 6:09 AM Ben Placella
wrote:
> So I have to make a fibonacci sequence, and I'm not sure what is wrong with
> my code
> #This program illustrates the fibonacci sequence
> nterms=int(input("Please enter ho
I need to write code that runs a cost calculating program with many
different variables and I honestly don't understand it, my code is:
beefmeals=int(input("Enter number of beef meals: "))
shitmeals=int(input("Enter number of vegan meals: "))
party=beefmeals+shitmeals
print(party)
if party<=50
a=7
So I have to make a fibonacci sequence, and I'm not sure what is wrong with
my code
#This program illustrates the fibonacci sequence
nterms=int(input("Please enter how many terms you would like to know: "))
n1 = 1
n2 = 1
count = 0
if nterms <= 0:
print("Please enter a positive integer")
elif nterms
16 matches
Mail list logo