qbitkit.io.list module

qbitkit.io.list.fill_range(fill='m', iterations=10)[source]

Fill a list with value fill repeated a specified number of times.

Parameters
  • fill (str) – String to repeat. (default str(‘m’))

  • iterations (int) – Number of times to repeat string. (default int(10))

  • append (list) – List to append generated list to. If None, does not append to a list. (default None)

Returns

list – Generated list.

qbitkit.io.list.count_range(start=0, end=9)[source]

Count between values start and end, appending each value to a list.

Parameters
  • start (int) – Number to start counting at. (default int(0))

  • end (int) – Number to stop counting at. (default int(9))

Returns

list – Generated list.

qbitkit.io.list.count(lst=None)[source]

Count items in a specified list.

Parameters

lst (list) – The list to count items from. (default None)

Returns

int – Count of items in specified list.