Why doesn't this code result in this output the syntax is from a python course the app pythonX in | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why doesn't this code result in this output the syntax is from a python course the app pythonX in

Input: setOne={1,2,3} setTwo={6,8.9,"James"} Output: {1,2,3} {6,8.9,"James"}

14th May 2023, 7:13 AM
Armand Beaulieu
Armand Beaulieu - avatar
3 Answers
+ 4
You aren’t printing the sets, so the code has no output.
14th May 2023, 7:16 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 3
If you want output, you need to use the print() function. Sololearn Python playground is not interactive.
14th May 2023, 7:15 AM
Lisa
Lisa - avatar
+ 3
Go to phyton for beginners course. And then you will learn more. https://www.sololearn.com/Course/JUMP_LINK__&&__Python__&&__JUMP_LINK-for-Beginners/?ref=app
15th May 2023, 7:17 AM
Fꫀⲅძ᥆͟ᥙ᥉᯽
Fꫀⲅძ᥆͟ᥙ᥉᯽ - avatar