Re: program python

2021-03-04 Thread Igor Korot
Hi, On Thu, Mar 4, 2021 at 4:42 PM alberto wrote: > > Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto: > > I don't see a Python program in that link. > > > > Are you asking how to extract data from a CSV? > > A good start will be to look into the csv.reader function and >

Re: program python

2021-03-04 Thread alberto
Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto: > I don't see a Python program in that link. > > Are you asking how to extract data from a CSV? > A good start will be to look into the csv.reader function and > csv.DictReader class. > > Paul > On Thu, 2021-03-04 at 12

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 3:15 PM, Terry Reedy wrote: On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change.

Re: program python

2021-03-04 Thread Paul Bryan
I don't see a Python program in that link. Are you asking how to extract data from a CSV? A good start will be to look into the csv.reader function and csv.DictReader class. Paul On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of c

Re: program python

2021-03-04 Thread dn via Python-list
Hi, and welcome to the list. On 05/03/2021 09.36, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of csv data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry out an analysis relating t

Re: program python

2021-03-04 Thread Igor Korot
Hi, On Thu, Mar 4, 2021 at 2:42 PM alberto wrote: > > Hi I'm tring to write a program with python to evaluate data of csv data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry out an analysis relating to the last avai

program python

2021-03-04 Thread alberto
Hi I'm tring to write a program with python to evaluate data of csv data In particular I would extract this information View data on the presence of men and women in Affori over time. * Carry out an analysis relating to the last available year. Of the 10 most populous neighborhoods show: * the

Re: Problem with printing statement when condition is false

2021-03-04 Thread Terry Reedy
On 3/4/2021 12:10 PM, Quentin Bock wrote: I won't paste the code into this because it's 164 lines so I will attach a file copy, The alternative to posting too much is to reduce your code to the minimum needed to exhibit the behavior you want to change. Doing so may reveal to you the solutio

Problem with printing statement when condition is false

2021-03-04 Thread Quentin Bock
Okay so, this is my biggest project, I'm not advanced in Python in any way so don't expect it to be perfect. I made a trivia game and for the most part, it works but I can't get it to print "Incorrect" and then what the answer was for all but one of my questions and I don't know why. I use PyCharm

Re: Why assert is not a function?

2021-03-04 Thread Grant Edwards
On 2021-03-03, Chris Angelico wrote: > On Thu, Mar 4, 2021 at 1:40 AM Grant Edwards > wrote: > >> I thought the entire point of asser being a keyword was so that if you >> disable asserts then they go away completely: the arguments aren't >> even evaluated. > > It depends on what the point of "r