Brewer's Profile User Rating: -----

Reputation: 175 Stalwart
Group:
Contributor w/DIC++
Active Posts:
1,051 (0.98 per day)
Joined:
14-June 10
Profile Views:
10,293
Last Active:
User is offline Apr 19 2012 01:13 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
275

Latest Visitors

Icon   Brewer has not set their status

Posts I've Made

  1. In Topic: how can i check what type is in a list?

    Posted 19 Apr 2012

    Python provides a built-in function type(object) that will return object's type, whether it be string, integer, or user-defined. If you wanted to print the type of each object in a list, I would recommend taking an approach similar to this:

    for item in list:
        print "%s -> %s." % (item, type(item))
    
    
  2. In Topic: Printing a parameter

    Posted 24 Feb 2012

    View Postatraub, on 24 February 2012 - 02:31 AM, said:

    Sorry to say, I wouldn't use Brewer's approach. That style of String formatting was deprecated as of Python 2.6, which means it won't be supported in later versions.

    Most of Python DOCS seems to be down tongiht, but I did find this link confirming it. It's under the section "Changes Already Present In Python 2.6".


    Hmm, that is interesting. I'll admit that I'm not terribly familiar with Python 3. +1

    The new formatting syntax looks incredibly un-Pythonic. They should have stuck with the modulo syntax.
  3. In Topic: Free Python Programming Classes - Enrol Now!

    Posted 23 Feb 2012

    View PostSkaggles, on 22 February 2012 - 03:57 AM, said:

    I signed up for the CS101 class and some of the students have started some IRC channels for people to continue discussions on freenode ##udacity-cs101. I've been looking for an excuse to learn Python and this seemed like that perfect opportunity.


    What's your IRC handle?
  4. In Topic: Free Python Programming Classes - Enrol Now!

    Posted 20 Feb 2012

    EDIT: The site is now up! Good luck soldiers.
  5. In Topic: Free Python Programming Classes - Enrol Now!

    Posted 20 Feb 2012

    It is also worth noting that there has been a discussion on Google+ where someone has supposedly taking on the task of setting up a mirror site for people in countries that, for whatever reason, can't access Udacity.com. More info on this should be available in the days to follow.

My Information

Member Title:
Awesome
Age:
20 years old
Birthday:
August 22, 1992
Gender:
Location:
St. John's, NL, Canada
Interests:
Algorithms, Data Structures, Data Analysis, Databases, Applied Mathematics (Probability Theory, Statistics, Cryptography)
Full Name:
James Brewer
Years Programming:
1
Programming Languages:
Learning: Python

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://jamesbrewer.me/
LinkedIn:
http://www.linkedin.com/profile/view?id=125675808
Facebook:
http://facebook.com/jjb127
Twitter:
jamsbrewr

Comments

Page 1 of 1
  1. Photo

    assert(C) Icon

    27 Jul 2011 - 08:12
    Hey mate
  2. Photo

    assert(C) Icon

    20 Jul 2011 - 07:04
    assert(C) says: I like the way he thinks
  3. Photo

    assert(C) Icon

    20 Jul 2011 - 06:43
    Hey thanks for the help in the forums yeh the GUI frameworks for python sucks the tutorials will give you code and have minimal explanation.
Page 1 of 1