0

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
  • 726
  • 1
  • 9
  • 22
notverygood
  • 247
  • 1
  • 9

0 Answers0