1

Say I have the following variable

var = [('tiktok', 0.4125749944943275),
       ('tiktokers', 0.4125749944943275),
       ('bytedance', 0.2047896978823389),
       ('company', 0.20463320041549565)]

How can I convert get the same list of tuples returned but with numbers rounded to 4 decimal points?

felice
  • 1,185
  • 1
  • 13
  • 27
notverygood
  • 297
  • 2
  • 13

0 Answers0