python - How to keep a number below n -


i have python program outputs list of coordinates correspond points in survey. keep simple, i'm trying make coordinate above n (36) display like: 1.8+36, 37.8, 1x1.8 (same number) work, or similar permutation... coordinates in lists (one x , 1 y). use if statement, works numbers less 72.

as long values remain below 1296 (36*36), can divide number 36 , represent number 36.

input_1 = 105 output_1 = (105 * 1.0) / 36 # 2.197  print '36*' + output_1 # 36*2.197 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -