deomorxsy

Untitled

Sep 19th, 2020
1,083
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python3
  2.  
  3. coluna1 = '0' #I
  4. coluna2 = '123'
  5.  
  6. accumulator = 0
  7. index = 0
  8. somador = 0.2
  9. somador_col2 = somador
  10.  
  11.  
  12. while (index <= 2):
  13.     print("I={} J={}".format(coluna1, coluna2[index]))
  14.     index += 1
  15.  
  16. index = 0
  17. while (index <= 2):
  18.     print("I={:.1f} J={:.1f}".format(float(coluna1) + somador_col2, (float(coluna2[index]) + somador_col2)))
  19.     index += 1
  20.  
  21. while (accumulator < 3):
  22.     somador_col2 += 0.2
  23.     index = 0
  24.     while (index <= 2):
  25.         print("I={:.1f} J={:.1f}".format(float(coluna1) + somador_col2, (float(coluna2[index]) + somador_col2)))
  26.         index += 1
  27.     accumulator+=1
  28.  
  29.  
  30. somador_col2 += 0.2
  31. accumulator+=1
  32.  
  33. index = 0
  34. while (index <= 2):
  35.     print("I={} J={}".format( int(float(coluna1) + somador_col2), int((float(coluna2[index]) + somador_col2)) ))
  36.     index += 1
  37.  
  38.  
  39. accumulator=0
  40.  
  41. while (accumulator <= 3):
  42.     somador_col2 += 0.2
  43.     index = 0
  44.     while (index <= 2):
  45.         print("I={:.1f} J={:.1f}".format( float(coluna1) + somador_col2, (float(coluna2[index]) + somador_col2)))
  46.         index += 1
  47.     accumulator+=1
  48.  
  49. somador_col2 += 0.2
  50. accumulator+=1
  51.  
  52. index = 0
  53. while (index <= 2):
  54.     print("I={} J={}".format( int(float(coluna1) + somador_col2), int((float(coluna2[index]) + somador_col2)) ))
  55.     index += 1
  56.  
RAW Paste Data