This repository was archived by the owner on Aug 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconversion_table.py
More file actions
123 lines (119 loc) · 1.5 KB
/
conversion_table.py
File metadata and controls
123 lines (119 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Program Name: conversion_table.py
# Anthony Waldsmith
# 6/16/16
# Python Version 3.4
# Description: Itterates 1 through 199 odd numbers only of a dual table Kilograms and Pounds
# Optional import for versions of python <= 2
from __future__ import print_function
import time
print ("Kilograms(kg)\tPounds(lbs)");
for kg in range(0,200):
if (kg % 2 != 0):
lbs = (kg * 2.2)
print ("%i\t\t%.1f" %(kg,lbs))
time.sleep(0.03)
"""
Kilograms(kg) Pounds(lbs)
1 2.2
3 6.6
5 11.0
7 15.4
9 19.8
11 24.2
13 28.6
15 33.0
17 37.4
19 41.8
21 46.2
23 50.6
25 55.0
27 59.4
29 63.8
31 68.2
33 72.6
35 77.0
37 81.4
39 85.8
41 90.2
43 94.6
45 99.0
47 103.4
49 107.8
51 112.2
53 116.6
55 121.0
57 125.4
59 129.8
61 134.2
63 138.6
65 143.0
67 147.4
69 151.8
71 156.2
73 160.6
75 165.0
77 169.4
79 173.8
81 178.2
83 182.6
85 187.0
87 191.4
89 195.8
91 200.2
93 204.6
95 209.0
97 213.4
99 217.8
101 222.2
103 226.6
105 231.0
107 235.4
109 239.8
111 244.2
113 248.6
115 253.0
117 257.4
119 261.8
121 266.2
123 270.6
125 275.0
127 279.4
129 283.8
131 288.2
133 292.6
135 297.0
137 301.4
139 305.8
141 310.2
143 314.6
145 319.0
147 323.4
149 327.8
151 332.2
153 336.6
155 341.0
157 345.4
159 349.8
161 354.2
163 358.6
165 363.0
167 367.4
169 371.8
171 376.2
173 380.6
175 385.0
177 389.4
179 393.8
181 398.2
183 402.6
185 407.0
187 411.4
189 415.8
191 420.2
193 424.6
195 429.0
197 433.4
199 437.8
"""