Shared Flashcard Set

Details

Built In Functions - Python
list of a few build in functions in python lang
11
Computer Science
Undergraduate 1
09/23/2010

Additional Computer Science Flashcards

 


 

Cards

Term
abs (x)
Definition
returns absolute value of x
Term
chr (i)
Definition
returns string given ASCII/Unicode
Term
cmp (x, y)
Definition
compares x and y, returns integer according to outcome
Term
float (x)
Definition
converts string of number into floating
point
Term
int (x)
Definition
converts string or number into plain integer
Term
len (s)
Definition
returns length of an object
Term
long (x)
Definition
converts string or number into a long integer
Term
ord (c)
Definition
given string, returns integer in unicode
Term
pow (x, y)
Definition
x to the power of y
Term
range ([start], stop [,step])
Definition
returns numbers starting a 0, step at 1, until stop
Term
str (object)
Definition
returns printable representation of
object
Supporting users have an ad free experience!