User Input Functions

betterfunctions.userinputfunctions.floatput(prompt='Please insert a float: ')

Asks for a float and returns the input as a float.

Parameters:

prompt (str) – Die gewünschte Aufforderung.

Return type:

float

betterfunctions.userinputfunctions.intput(prompt='Please insert an integer: ')

Asks for an integer and returns the input as an int.

Parameters:

prompt (str) – The wanted prompt for the input.

Return type:

int

betterfunctions.userinputfunctions.wait_for_key(prompt='Press a key to continue...')

Waits for the user to press a key.

Parameters:

prompt (str) – The prompt which should be displayed in the console.

betterfunctions.userinputfunctions.yes_no_input(prompt='Please answer with yes or no: ')

Asks for a yes or no. Returns the input as a boolean.

Parameters:

prompt (str) – The wanted prompt.

Return type:

bool