0

Does writing code follow a given structure example does a variable come before a function??

18th Jul 2016, 5:24 PM
Bonimwat Optimux Vicker
Bonimwat Optimux Vicker - avatar
4 Answers
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.
18th Jul 2016, 9:31 PM
Gershon Fosu
Gershon Fosu - avatar
0
thanks
19th Jul 2016, 4:47 AM
Bonimwat Optimux Vicker
Bonimwat Optimux Vicker - avatar
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
19th Jul 2016, 10:28 AM
Phil
Phil - avatar
0
I have no idea
25th Jul 2016, 3:14 AM
Brenden Jensen
Brenden Jensen - avatar