[Tutor] Visual Studio issue when pip installing mysql-python

2017-11-08 Thread Mike Nickey
Hi all, I understand that this might be out of the scope of this list but I am hopeful that someone has some insight on it so I can move forward with this project. This is a hail mary attempt to get this resolved. The issue that I am seeing is that I have a script that works well locally. I am tr

[Tutor] SQLAlchemy

2015-01-26 Thread Mike Nickey
Hey folks, I'm working my way through Thinkful with python and I'm trying to get a setup working. Part of this setup is using SQLAlchemy. While I understand this is a python tutor list, would it be OK to ask questions like 'how do I change my SQLAlchemy URL to include a user name' here? -- ~MEN

[Tutor] Off topic - Ruby similar list?

2014-07-09 Thread Mike Nickey
Just curious if there's a similar list like this one for Ruby-ists. Anyone know of one or two? TIA -- ~MEN ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor Digest, Vol 112, Issue 29

2013-06-09 Thread Mike Nickey
on punctuation (Alan Gauld) > > > -- > > Message: 1 > Date: Sun, 09 Jun 2013 06:48:13 +0100 > From: Alan Gauld > To: tutor@python.org > Subject: Re: [Tutor] Splitting on punctuation > Message-ID:

[Tutor] Splitting on punctuation

2013-06-08 Thread Mike Nickey
Hey guys, I'm working on a web-project simply to bruh up on skills and build new ones. One of the tasks is to split on punctuation passed yet I'm having a bit more trouble then I expected. Give the input of "which isn't that surprising I guess.",",'.") where the first part passed is the string an

[Tutor] Python version 2.7 or 3.0

2013-03-12 Thread Mike Nickey
Hey all, I'm used to python 2.7 but I'm seeing and hearing a lot about 3.0 and wanted to ask a few questions. I'm seeing on StackOverflow that 2.7 is the standard for those that have libraries that haven't been ported to 3.1.2 yet. Does this mean that 2.7 is dead or dying? Is this just a well mana

[Tutor] Creating a dictionary on user filter

2012-07-19 Thread Mike Nickey
Hi All, I have a few lists that I'm trying to put into a dictionary based on which list the user wants to use as a filter. If the user selects 1 the the dictionary would be created using the first list as the keys and the secondary items as the values. If the user selects 2, the dictionary would b

Re: [Tutor] Tutor Digest, Vol 100, Issue 58

2012-06-25 Thread Mike Nickey
>> The problem with this code is that it only gets the first word beginning >> with x and the others remaisn on the original list, sorted at the end. I've >> tested on terminal many parts of the code and it whas fine, but when I run >> it complete, it does not work. >> >> Following is the solution

Re: [Tutor] Sorting tuples

2012-06-20 Thread Mike Nickey
While i'm still not sure what lamda is or represents, I've found a solution. Thank you all for your assistance, past, present and future. :) This seems to work: def sort_last(tuples): return sorted(tuples, key=myDef) def myDef(s): return s[-1] On Wed, Jun 20, 2012 at 4:0

[Tutor] Sorting tuples

2012-06-20 Thread Mike Nickey
Hey all, I'm working through the google classes to increase my python understanding and I'm stuck on sorting tuples. What is being asked is to sort tuples based on the second element of the tuple in ascending order. Given a list of non-empty tuples, return a list sorted in increasing order by the

[Tutor] getpass

2012-06-15 Thread Mike Nickey
Hey all, I'm working on a bit of code here and I'm having an issue with getpass. In the documentation, it says it hides the text entered "Prompt the user for a password without echoing." -- http://www.python.org/doc//current/library/getpass.html However when I run it in Eclipse, the password is

Re: [Tutor] Finding palindromes in a list

2012-06-08 Thread Mike Nickey
print "\nPrinting palindromes" print palindromes[:] print "\nDone!!!" On Fri, Jun 8, 2012 at 6:38 PM, Dave Angel wrote: > On 06/08/2012 09:01 PM, Marc Tompkins wrote: >> On Fri, Jun 8, 2012 at 5:10 PM, Mike Nickey wrote: >> >>> def compareElements(wor

[Tutor] Finding palindromes in a list

2012-06-08 Thread Mike Nickey
I'm trying to write a bit of code that will run through a text file and find the item or word string that is the same forward as it is when it is revered...a palindrome. I'm having a bit of issue looping through the wordList[] that I have created. If you have any comments or suggestions I'd really

Re: [Tutor] GameTracker help

2012-02-25 Thread Mike Nickey
it's not redundant code? On Sat, Feb 25, 2012 at 02:07, Mike Nickey wrote: > Hey all, > > I'm trying to wok on a game tracker for my friends. What I have here > partly works but there are areas that I want to change and some areas > that are just not working for me.

[Tutor] GameTracker help

2012-02-25 Thread Mike Nickey
Hey all, I'm trying to wok on a game tracker for my friends. What I have here partly works but there are areas that I want to change and some areas that are just not working for me. The areas that I am having difficulty with are the def pointsNeeded and oppPointsNeeded. What is strange to me is t

[Tutor] Creating Android Apps w/ Python

2011-11-02 Thread Mike Nickey
I'm currently taking a class on Android Development. The instructor says that the code needed has to be done through Java. Isn't there any way to create these same apps with Python? I read on the Android Dev site that MonkeyRunner can assist but does anyone else have any experience on how well this

[Tutor] Finding if a passed variable is within to set parameters

2011-10-10 Thread Mike Nickey
t;= 8) and (UserSkillLvl >=1)): print "thank you" temp = 1 break elif (UserSkillLvl >8) or (UserSkillLvl < 1): while temp == 0: UserSkillLvl = raw_input("Please re-enter your skill level: ")

[Tutor] declaring a blank interger

2011-10-05 Thread Mike Nickey
: UserName = raw_input("Enter your name: ") return UserName def getUserNumber(x): x = input("Enter a number:") #This will be the users unique ID number return x getUserName() getUserNumber(x) print UserName, x Be

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
to a variable > > Or you can append to a list directly. > > l = [] > > for d in yourdict: >     l.append(d['city']) > > > Sent from my Verizon Wireless BlackBerry > > -Original Message- > From: Mike Nickey > Sender: tutor-bounces+eire1130=gmail.

Re: [Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
append and populate a list but I don't know how to pull an item by key value from the dictionary returns. I hope this helps clear some confusion and thanks in advance. On Mon, Aug 1, 2011 at 15:14, ian douglas wrote: > On 08/01/2011 03:05 PM, Mike Nickey wrote: >> >> Hi all, >

[Tutor] Accessing Specific Dictionary items

2011-08-01 Thread Mike Nickey
Hi all, I'm trying to access and use specific items within a dictionary that is returned but am having issues in doing so. [{'city': 'Sunnyvale', 'region_name': 'CA', 'area_code': 408, 'metro_code': 'Santa Clara, CA', 'country_name': 'United States'}] How can I populate a list of many different r