Coverage for src/km3dq_common/utils.py: 0%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-25 11:58 +0000

1#!/usr/bin/env python3 

2# -*- coding: utf-8 -*- 

3from .calc import Calculator 

4 

5 

6def print_multiplication_table(base): 

7 """Prints the multiplication table for a given base""" 

8 calculator = Calculator() 

9 for i in range(1, 11): 

10 print("{} x {} = {}".format(base, i, calculator.multiply(base, i)))