Skip to main content
  1. Python za inženirje - video/

006 - Izpis tabele

Pzi Python
Table of Contents
Python za inženirje - video - This article is part of a series.
Part 6: This Article
Uporaba seznama in izpis preproste tabele.

Povezave
#

Izvorna koda
#

tabela.py
#

#!/usr/bin/env python

import math

radiji = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

for r in radiji:
    pl = math.pi * r**2
    print("{:3d} {:.3f}".format(r, pl))
Python za inženirje - video - This article is part of a series.
Part 6: This Article