pypkgtemp package

Submodules

pypkgtemp.hello module

class pypkgtemp.hello.HelloWorld(firstname, lastname)

Bases: object

HelloWorld class will tell you hello!

hello

say hello to user

a longer message about what this function does

Returns:special hello message to user
Return type:str
static helloworld(name)

string with special hello message to name

Parameters:name (str) – the person to say hello to
Returns:special hello world message
Return type:str
pypkgtemp.hello.fizzbuzz(n)

A super advanced fizzbuzz function

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz” Prints out fizz and buzz

Parameters:n (int) – number for fizzbuzz to count to
Returns:prints to stdout fizzbuzz
Return type:None

Module contents