Lesson 10: Aave syntax question #109
-
Referring to the portion of the project where we define the Is there a difference, or are both one in the same? For my learning. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
They are the same, the only thing that matters is the order has to be the same. See: https://en.wikipedia.org/wiki/Naming_convention_(programming) |
Beta Was this translation helpful? Give feedback.
-
There is no connection between the tuple returned in solidity and the returning value in your python script... you can literally use any name for your variables, it's called unpacking (in python, in other language you can find this feature under something named like "destructuring") and you can find a short explanation here |
Beta Was this translation helpful? Give feedback.
They are the same, the only thing that matters is the order has to be the same.
total_collateral_eth is just using the naming conventions in Python (all lower case with _ between words)
Solidity uses CamelCase for contracts and lowerCamelCase for variables.
See: https://en.wikipedia.org/wiki/Naming_convention_(programming)