Why am I getting this difference in output upon using the print function.Also why is the ouput not matching the actual input in either of the cases?
Asked
Active
Viewed 21 times
1 Answers
2
sets
are unordered data types that's why you get different results.

George Imerlishvili
- 1,816
- 2
- 12
- 20
-
Thank you. Can I please know how should I overcome this problem – kmskz Mar 21 '22 at 18:09
-
instead of set you can use ordered data types like `list`, `tuple`, and so on. – George Imerlishvili Mar 21 '22 at 18:29