Advertisement
tinypirate

was this necessary? no.

Sep 16th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1.     newlist = []
  2.     for x in list:
  3.         newlist.append(float(x))
  4.  
  5.     newlist = [float(x) for x in list1]
  6.     print(newlist)
  7.  
  8.     for index, x in enumerate(list1):
  9.         list1[index] = float(x)
  10.  
  11. #-------------------
  12.  
  13. list1 = ["1","2","3"]
  14.  
  15. list1 = [int(i) for i in list1]
  16. print(list1)
  17.  
  18. print([i * 3.142 for i in list1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement