-1

enter image description here

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?

kmskz
  • 1

1 Answers1

2

sets are unordered data types that's why you get different results.

George Imerlishvili
  • 1,816
  • 2
  • 12
  • 20