“Review” part of “Advanced topics in python”

 

Today in the lab first we talk about the Anonymous Functions and learn about the lambda syntax later on. When the professor teach us this, I open the shell python 3.4 and try it out on the first I start with f lambda x,y:x+y

print(1,1) and it gives me a syntax error and I figure it out that it is in python 3.4 so you need parenthesis for the print statement Print((1,1))

And the professor also teaches us that <<<(111.0.2)<(99,5,6) will give us the result of false, but<<<(“wenqianbb”,”cute”)>(“pangyen”,”cute” ) will give us the result true. That’s the differences between aliphatic and numeric things.

wq wq2 wq3 wq4

Comments are closed.