API - Application Program Interface¶
anagram¶
bob¶
-
class
Bob(statement)[source]¶ Class to provide Bob’s response to a given statement.
Attributes: - statement: original query posed to Bob
- response: Bob’s response to the query
Staticmethods: - hey:
- silent: response to silent query
- yell: response to yell query
- question: response to question query
- remainder: response to all other queries
difference_of_squares¶
-
sum_of_squares(n)[source]¶ Calculate the sum of the squares for the first n natural numbers.
Parameters: n (int) – number of natural numbers to be operated on Returns: sum of the square for 1 to n Return type: int
gigasecond¶
hamming¶
hello_world¶
Module contains function to greet user.
leap¶
meetup¶
-
meetup_day(year, month, day_of_week, option)[source]¶ Function will determine the date of meetup.
Parameters: - year (int) – year of meetup
- month (int) – month of meetup
- day_of_week (str) – name of meetup day
- option (str) – modifier for choosing meetup (1st, 2nd, 3rd, 4th, first, last, teenth)
Returns: date of meetup
Return type: datetime object