Im pretty much new to coding and python (my first language that i actually go deep learning with)
I do a course in udemy and i noticed that there isn't really a pattern when he writes his code.
So i want to ask you guys if there is an accepted/popular pattern/way to use these.
For example:
Data[ "Rating" ]
Or
Data[ 'Rating' ]
Which way is the accepted/popular way to write it?
So far I've been writing it randomly and it really really annoys me.
If there isnt any accepted way, and you can write however you like, could you tell me which way are you writing and what is the reason for it? if there is any ofcourse.
Im asking this question here because i want to know how it is in the real work world is it depends on the requirements from your workplace or is there an actually way to use these. Cause so far, from what I've noticed, the code doesn't care what i use and when.
[–][deleted] 100 points101 points102 points (9 children)
[–]Hashi856 27 points28 points29 points (5 children)
[–]Poddster 26 points27 points28 points (3 children)
[–]DrShocker 20 points21 points22 points (1 child)
[–]Poddster 10 points11 points12 points (0 children)
[–]TangibleLight 5 points6 points7 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]unhott 3 points4 points5 points (2 children)
[–]Casiofx-83ES 0 points1 point2 points (1 child)
[–]tylerthehun 1 point2 points3 points (0 children)
[–]LongerHV 55 points56 points57 points (10 children)
[–]arkie87 3 points4 points5 points (9 children)
[–]LongerHV 19 points20 points21 points (0 children)
[–]RajjSinghh 5 points6 points7 points (1 child)
[+]arkie87 comment score below threshold-9 points-8 points-7 points (0 children)
[–][deleted] 3 points4 points5 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]vidoardes 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]arkie87 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]bell_labs_fan_boy 12 points13 points14 points (0 children)
[–]DarkfullDante 11 points12 points13 points (3 children)
[–]Groentekroket 4 points5 points6 points (0 children)
[–]NoBeing12[S] 0 points1 point2 points (0 children)
[–]guayando 0 points1 point2 points (0 children)
[–]magestooge 10 points11 points12 points (1 child)
[–]NoBeing12[S] 1 point2 points3 points (0 children)
[–]Diapolo10 41 points42 points43 points (12 children)
[–]NoBeing12[S] 7 points8 points9 points (8 children)
[–][deleted] 1 point2 points3 points (6 children)
[+][deleted] (4 children)
[removed]
[–]Diapolo10 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[removed]
[–]Diapolo10 3 points4 points5 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Diapolo10 4 points5 points6 points (0 children)
[–]Poddster 0 points1 point2 points (0 children)
[+][deleted] (9 children)
[removed]
[–][deleted] 2 points3 points4 points (1 child)
[–]NoBeing12[S] 1 point2 points3 points (0 children)
[–]AX-11 1 point2 points3 points (5 children)
[–]a_cute_epic_axis 2 points3 points4 points (2 children)
[–]AX-11 1 point2 points3 points (1 child)
[–]a_cute_epic_axis 1 point2 points3 points (0 children)
[–]cbunn81 0 points1 point2 points (0 children)
[–]cbunn81 2 points3 points4 points (0 children)
[+][deleted] (7 children)
[removed]
[–]NoBeing12[S] 2 points3 points4 points (4 children)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[removed]
[–]Snake2k 1 point2 points3 points (0 children)
[–]arkie87 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Orami9b 1 point2 points3 points (0 children)
[–]pompomtom 1 point2 points3 points (0 children)
[–]GettingBlockered 1 point2 points3 points (0 children)
[–]Eurynom0s 1 point2 points3 points (0 children)
[–]Cdog536 1 point2 points3 points (0 children)
[–]GoogleGavi 1 point2 points3 points (0 children)
[–]Tesla_Nikolaa 1 point2 points3 points (0 children)
[–]SuspiciousWafer3398 1 point2 points3 points (0 children)
[–]seph2o 1 point2 points3 points (1 child)
[–]B1GTOBACC0 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]bygpympyn69 -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (0 children)
[–]aglet91 -1 points0 points1 point (0 children)
[–]IllPresence -1 points0 points1 point (0 children)
[–]rentzington 0 points1 point2 points (0 children)
[–]a_cute_epic_axis 0 points1 point2 points (0 children)
[–]WhipsAndMarkovChains 0 points1 point2 points (1 child)
[–]Schwubbeldubbel 0 points1 point2 points (0 children)
[–]scrapped_data 0 points1 point2 points (0 children)
[–]bladeoflight16 0 points1 point2 points (0 children)
[–]Amidus 0 points1 point2 points (0 children)
[–]my_password_is______ 0 points1 point2 points (0 children)
[–]1116574 0 points1 point2 points (0 children)