Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Shared Offices

Python question?


1.What is the difference between a Python property and a Python attribute?
2.What is the name of Paul's grandmother's dead dog that shares Paul's birthday?
3.Name at least one of Paul's cousin's parent's sister's sons. You may find a tree structure helpful here.
4.Why is list.pop(0) slow for large lists?
5.State the number of times that you have visited Paul's office hours. Your answer must be accurate, and your mark corresponds directly to your answer.

This is a tough one. attributes I do know you get with the dot notation. eg

print objectname.attrname

whereas property is more like a function (method??) python is crazy because a function can call the same function it's running in. But a property gets (or sets) a group of attributes of your design. And python has property function at all times on the built-ins.

class C(object):
def getx(self): return self.__x
def setx(self, value): self.__x = value
def delx(self): del self.__x
x = property(getx, setx, delx, "I'm the 'x' property.")
=========
the python property

>>> print property.__doc__
property(fget=None, fset=None, fdel=None, doc=None) -> property attribute

------------------------------
Your question scared me to death because I thought I knew some python...

===============

this is all I could find in the trivia questions:

a 2001 April Fool's Day joke by van Rossum and Larry Wall involving the merger of Python with Perl was dubbed "Parrot" after the Dead Parrot Sketch. The name "Parrot" was later used for a project to develop a virtual machine for running bytecode for interpreted languages such as Perl and Python.

Tags
  Offices to Lease   Rent Offices   Business Centers   Service Offices   Branch Offices   Temporary Offices   Shared Offices   Commercial Space   Office Space   Business Services   Business Address   Call Forwarding
Related information
  • Branch Davidian fire in Waco?

    It was a cover up,that's why! Those poor people/women and innocent lil children from Waco were simply MURDERED for their beliefs. They were NOT hurting anyone,except the twisted minds of ...

  • Should a warranty deed in lieu of Foreclosure on a timeshare show up as a collection/chargeoff?

    You can send them a copy of the Warranty Deed but it will do you no good. The corporation that sold you the timeshare has lost the "Maintenance Fees" they charge you every year. The...

  • Should I be with my one true love... if we're both married to someone else?

    Sounds like you have rejected some advice that you know you have coming to you but here goes: you are cheating on two people. The woman you married and the woman you're screwing outside your m...

  • Ummm...should I call?

    If your coworker is his mom and says he's a playa and is worried about you? Maybe he's PLAYIN you with the 'SHY ROUTINE'.

    ...
  • I want to forget a girl because i love her but she doesnot she loves some one else?

    Hi Here is a must do (tried it and it worked ONLY if you stick to them) 1 - Ignore her 2 - DO not try to insult her back .. just let her go 3 - If she talks answer as you always do , if she ...

  • What are my legal rights when my roommate of 5 mos who is the lease holder wants me out?

    She, or the landlord, will have to formally evict you. She probably doesn't have much leg to stand on as long as you pay the rent. The landlord can require your name to be listed as an occup...

  • Big One Master?

    1.) A. 2.) B. 3.) A. 4.) D. 5.) B. 6.) A. 7.) A. 8.) ? 9.) D. 10.) B. 11.) D. 12.) A. 13.) ? 14.) A. 15.) D. 16.) D. 17.) ? 18.) D. 19.) A. 20.) C.

    ...
  • Should I THREATEN to leave my job if i don't get a RAISE?

    There's a better way to go about it. If you go the whole "I'll leave if I don't get a raise" route, odds are, no matter how hard you work, your boss will just remind you wh...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster