Post

Python Programming
Python Programming@PythonPr·
What is The Difference ❓📷 Comment The Output
Python Programming tweet media
English
14
2
43
5.9K
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@PythonPr Left code: prints 3 (because {1,2,2,3} is a set, duplicates removed → {1,2,3}) Right code: SyntaxError (missing )) If they meant to compare set vs dict, then {1:2, 2:3} would be a dict (needs ).
English
0
0
1
153
Ik Ghostman
Ik Ghostman@ghostmanik1·
@PythonPr Missing closing parenthèse in the print funcion
Română
0
0
0
2
Sunil
Sunil@SunilSun56557·
@PythonPr Output: 3 - because sets remove duplicates.
English
0
0
0
17
shabi
shabi@qadrishabih_·
@PythonPr Print statement parenthesis open in second code
English
0
0
0
35
Surtur
Surtur@Surtur·
@PythonPr Is presenting a typo as a knowledge challenge seems pointless. Any IDE would automatically add the missing parentheses or flag it as missing. It’s a waste of time to even review these posts.
English
0
0
0
38
Ranjan
Ranjan@Ranjanrgdev·
@PythonPr print statement is not closed in second
English
0
0
0
108
Paylaş