a = b b = c c = a Print c
(a, b) =>(b, a) in java using lambda function
I have same reaction when I 1st time read python after study Java In Java system.out.print(" print" ); Meanwhile in python print("print")
C++ swap(a,b)
Js [a,b]=[b,a];
C++ swap(a,b) - STL
Jo chacha h wahi เคญเคคเฅเคเคพ h ๐
int a=5 ,b=10; a= a+b; b= a-b; a=a-b; another way.
JavaScript me bhi by destructuring
a= b+a - (b=a)
Hacker hai bhai hacker ๐คฃ๐
โคโค
Js: [a,b]=[b,a] and c#(a,b)=(a,b) or also may be in c++ also
Btw can be done 2 var also in cpp and c
A lot of explanation between the lines is lost in python by typing that single line code. It depends on what kind of thinking pattern you are comfortable with, For quick thinkers it is python and the merits of python is it has a large variety of applications
in programming , "=" it is assign operator and "==+ this is equals to , which is a comparison operator when you will understand this then you will understand that its not fraud jo maths backgroud se hote hai unko ye '=' equals to lagta hai
(a, b) = (b, a) C#
Swap(a, b). C++ baap
@KunalKumar-o8z