Re: [Tutor] doubt in a program

2018-01-29 Thread Nitin Madhok
this approach that you should be using to reverse a string. -- Thanks, Nitin Madhok Clemson University CONFIDENTIALITY NOTICE This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain privileged and/or confidential information. If you

Re: [Tutor] egg timer

2018-06-25 Thread Nitin Madhok
Paula, Can you send the snippet of code where you’re having the syntax error? Thanks, Nitin Madhok > On Jun 24, 2018, at 5:21 PM, Paula Malimba wrote: > > Hello, > > I'm new to programming and am studying the book Begin to Code with Python. > I'm stuck in les

Re: [Tutor] Is there a better way to write my code?

2018-08-14 Thread Nitin Madhok
27;Cow', 3], ['Panda', 5]] If you want to read more about list comprehension, https://www.pythonforbeginners.com/lists/list-comprehensions-in-python/ <https://www.pythonforbeginners.com/lists/list-comprehensions-in-python/> is a good resource! -- Thanks, Nitin Madhok Clemson Un

Re: [Tutor] Query: lists

2018-08-14 Thread Nitin Madhok
_words)) Or you could even use list comprehension like this: print 'original - new', [word for word in words if word not in removed_words] -- Thanks, Nitin Madhok Clemson University CONFIDENTIALITY NOTICE This e-mail, and any attachments thereto, is intended only for use by the addr

Re: [Tutor] SQL querying

2018-08-31 Thread Nitin Madhok
ySQLdb (comes from package MySQL-python) * mysql.connector (comes from package mysql-connector-python) * pymysql (comes from package PyMySQL) You can install them by doing: pip install For example: pip install mysql-connector -- Thanks, Nitin Madhok Clemson University CONFIDENT