0
Does writing code follow a given structure example does a variable come before a function??
4 Réponses
0
Each language has its own syntax and structure. So yes. Your example is quite unconventional but there are some 'unique' programming languages out there. Luckily it is not the case for Python.
0
thanks
0
are you referring to code convention / code style / code standards? I'm not sure if there's a general python code convention except for indentation (which unlike in every other coding language I've ever come across is enforced in python) although I guess you could Google that. You have to define variables and functions before you use them but whether they're defined immediately before or some other place before their use; doesn't matter for errors, although it does make a difference when someone looks at the code at a later date. Some organisations insist on code conventions / standards, because if all the code in the company does stuff in one way, people can hop into code they've never seen before and it'll take less time to understand it than if it had it's own style
0
I have no idea