This thread is hilarious. Thanks for the chuckle.
http://www.ignyte.ms/whitepapers/LayersOf%20HumanValuesInStrategy.pdf
http://www.principiadiscordia.com/downloads/04%20Prometheus%20Rising.pdf
On Mon, 22 Dec 2014 11:27:01 +
Vishwas Pathak wrote:
> I am working building on developing an au
On Tue, 23 Dec 2014 18:27:10 +
stuart kurutac wrote:
> finish = (int(input("Finish: "))
The parenthesis aren't balanced. I would have written it as:
finish = int(input("Finish: "))
but something like this should also work:
finish = (int(input("Finish: ")))
___
Hello,
I am trying to get up to speed on python; expand my skills etc.
I work in a VFX environment where most all the tools continue to run with
python 2.7XX
I have seen that pyqt5 supports python 2.7 according to its documentation but
it needs to be rebuilt to function.
I have done some
Subject: Re: [Tutor] QT5 pyqt5 for python 2.7
On 18/11/17 01:51, adam ghering wrote:
> Hello,
>
> I am trying to get up to speed on python; expand my skills etc.
>
> I work in a VFX environment where most all the tools continue to run with
> python 2.7XX
>
> I have seen that p
", multipoint_size="0")
# JOIN RandomFile (CID) to DonutFile (OBJECTID)
arcpy.JoinField_management(in_data="RandomFile", in_field="CID",
join_table="DonutFile", join_field="OBJECTID",
fields="")
# DELETE unnecessary fields in
". I see there's
get-pip.py, but the documentation on using it is confusing. Thanks for your
help.
Adam
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Also, try (works for me in Python3)
rivers = {'nile' : 'egypt', 'ohio' : 'US', 'rhine' : 'germany' }
for key, value in rivers.items():
print (key)
for key, value in rivers.items():
print (value)
for key, value in rivers.items():
print ("The " + key + " is in the country of " + value)
The program works as is in Python3. For Python2, change input to raw_input
and see if that makes it work (I know it worked for me when I had Python2).
Also, it looks better to use " + " instead of a comma:
print("Combining these foods will you," + new_food)
Also, colons and spaces are good practic
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 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?
>
> >
On Fri, Nov 2, 2018 at 8:10 PM Mark Lawrence wrote:
> On 02/11/2018 22:49, Alan Gauld via Tutor wrote:
> > On 02/11/2018 21:13, Roger Lea Scherer wrote:
> >
> >> I have installed python 3.7 on my computer Windows10
> >> (C:\Users\Roger\AppData\Local\Programs\Python\Python37),
> >
> > Caveat: I'm
When I post code with questions, I just copy and paste from Python IDLE
3.6. Colors are removed, but indentation is preserved.
On Tue, Nov 6, 2018 at 6:59 PM Mats Wichmann wrote:
> On 11/6/18 4:36 PM, Joseph Gulizia wrote:
> > Funny using a text editorand showed indented in my browser.
>
I haven't gone through many python books, but have been using a copy of
Automating the Boring Stuff with Python. It covers lists, dictionaries,
scraping data from websites, etc.
https://automatetheboringstuff.com/
The PDF is free.
Adam
On Tue, Dec 4, 2018 at 1:09 PM James Stapleton-Cotton
I've liked turtle and make my graphing more interesting by asking for user
input such as dimensions, then graph automatically.
One starter source for using pygame graphics is
https://inventwithpython.com/pygame/
It jumps into game writing very quickly, but provides explanations of
commands.
The o
Take a look at the book Automating the Boring Stuff with Python (free PDF):
https://automatetheboringstuff.com/
There's a couple of chapters in there for downloading CSV files and
extracting the data.
On Thu, Dec 13, 2018 at 1:57 PM Sammy Lee wrote:
> I need help on how to open a webpage and sa
On Fri, Dec 21, 2018, 3:26 AM Michael Mossey
wrote:
>
> There are two sub-topics I'm interested in - (1) graphics, as in drawing
> interesting pictures or art, or using diagrams for data visualization. (2)
> Simple games, with the use of sprites.
>
One that hasn't been mention in yours and Alan'
Hello everyone. I'm thinking through a short program I want to write
that will 'par2'/generate ECCs for all of my work files which branch out
from a single directory and number approximately 15,000. Specifically:
1) day one:
- create a mirror copy of the directory tree empty of all files (the
On Wed, 20 Jun 2007 12:32:53 +0200
Norman Khine <[EMAIL PROTECTED]> wrote:
> My question is how to get all the words in the string to start with
> capital letter?
title() should do it
>>>a = "hello world"
>>>a.title()
>>>'Hello World'
___
Tutor maillis
I was reading over the documentation for the tarfile module and it
occurred to me that there didn't seem to be a way to remove an
individual file from the tar.
For example, suppose I did this:
import tarfile
tar = tarfile.open("sample.tar", "w")
tar.add("unwanted")
tar.add("wanted")
tar.close()
> Do you know of any service or person that could do a code review
> for me?
Perhaps if you were more specific about what you are looking for in the
review? If you merely want something to check your code for possible
errors and how well you stick to standards, then look into pylint or
pychec
> os.path.exists(path) returns false when the path actually exists!
>
> When I do this:
>
> >>> os.path.exists("c:\\winnt\\file_name")
>
> I get this:
> >>> False
>
> Actually the file exists in c:\winnt, and I can confirm it exists
> there, but os.path.exists isn't returning True, wh
ending because TarFile objects can't append if the tar is
compressed. And finally, I can't predict the compression ratio, so I
can't merely keep track of the size of the individual files without a
huge gap to my target size.
I'm giving up on
> > I've been working with the tarfile module and just noticed an
> > apparent flaw in my own logic. I wanted to add files to the tar
> > until it neared a certain file size. After every addition I would
> > use os.path.getsize(). What I noticed today is that I could add a
> > file to the tar wi
earching
begins with a metacharacter. For example: if the string '*I need *help'
contains the word 'help' then true, else false.. Any advice you can
provide would be great.
Thanks,
Adam
___
Tutor maillist - Tutor@python.org
http
301 - 324 of 324 matches
Mail list logo