 Python is a dynamic language that does not require you to specify data types as you create variables or supply return types. This makes development a lot easier but can introduce unexpected bugs when things don't go as expected. Typed languages help prevent bugs by making sure **strings** are strings, and *ints* are ints when they need to be. This can save hours of debugging when suddenly something doesn't work when it used to in the past. While Python doesn't require types, 3.5 added the option to specify a type. This allows Python IDE's like PyCharm and linters to provide better insight into your code and warn you of type misusage. While the syntax in Python 3.5 works, it depended on comments which don't always display properly in different editors for this sort of thing. 3.6 took it further and added a specific syntax that displays better in editors that support it. I will not cover the 3.5 Syntax as you should be using 3.6 if you are using Python 3. # Type Annotation in Python 3.6 In 3.5 you could type hint lists and dicts and this hasn't changed in 3.6. ### No type hinting ``` employees = [] ``` ### Type hinting ``` employees = List[str] ``` The type hinting specifies a list of strings. Now nothing will stop you from putting an int or a float in there, everything will work perfectly fine but if your business logic expects strings and gets a float your code may break without any previous warning. Using an IDE like PyCharms would have warned you that there was a float in your list of strings. You can also use mypy type checker or any number of code linters. All the above code is compatible with 3.5, when we start dealing with variables that are not strings or dicts is when the syntax changes between 3.5 and 3.6. The below code only works with 3.6. ### No type checking `employee = 'Bob'` ### Type checking `employee : str = 'Bob'` While this seems like a simple change, it can prove extremely useful when your code suddenly breaks for no apparent reason. The syntax is simple `variable : [TYPE] = [VALUE]` The only change is adding a : and a [TYPE] to your variable declarations. You can verify the type with type(). If you are not using a code linter, I highly suggest you do. I will cover linting in a future post. # My Python Tips Series * [f-strings in Python 3.6](https://steemit.com/programming/@themarkymark/python-tips-f-strings-in-python-3-6-and-why-you-should-be-using-them) * [Underscores in numeric literals](https://steemit.com/programming/@themarkymark/python-tips-underscores-in-numeric-literals) * [A better interactive shell](https://steemit.com/programming/@themarkymark/python-tips-a-better-interactive-shell) * [Secrets Module - New in 3.6](https://steemit.com/programming/@themarkymark/python-tips-secrets-module-new-in-3-6) * [PEP 8](https://steemit.com/programming/@themarkymark/python-tips-pep-8) * [Slices](https://steemit.com/programming/@themarkymark/python-tips-slices) * [Named Tuples](https://steemit.com/programming/@themarkymark/python-tips-named-tuples) * [Destructuring](https://steemit.com/programming/@themarkymark/python-tips-destructuring) * [Counter](https://steemit.com/programming/@themarkymark/python-tips-counter)
author | themarkymark |
---|---|
permlink | python-tips-type-annotation |
category | programming |
json_metadata | {"tags":["programming","python","python-tips","dev","tutorial"],"image":["https://steemitimages.com/DQmSsFP8BDE1DkXNN9hh1729MRexyqupLEKfWJTsRskjt33/image.png"],"links":["https://steemit.com/programming/@themarkymark/python-tips-f-strings-in-python-3-6-and-why-you-should-be-using-them","https://steemit.com/programming/@themarkymark/python-tips-underscores-in-numeric-literals","https://steemit.com/programming/@themarkymark/python-tips-a-better-interactive-shell","https://steemit.com/programming/@themarkymark/python-tips-secrets-module-new-in-3-6","https://steemit.com/programming/@themarkymark/python-tips-pep-8","https://steemit.com/programming/@themarkymark/python-tips-slices","https://steemit.com/programming/@themarkymark/python-tips-named-tuples","https://steemit.com/programming/@themarkymark/python-tips-destructuring","https://steemit.com/programming/@themarkymark/python-tips-counter"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-05-07 20:32:51 |
last_update | 2018-05-07 20:32:51 |
depth | 0 |
children | 18 |
last_payout | 2018-05-14 20:32:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 120.055 HBD |
curator_payout_value | 5.978 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,321 |
author_reputation | 1,772,913,736,212,203 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,445,250 |
net_rshares | 27,497,116,596,003 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
berniesanders | 0 | 5,330,844,733 | 2.5% | ||
pharesim | 0 | 81,614,197,330 | 0.19% | ||
kushed | 0 | 486,294,290,857 | 25% | ||
nextgencrypto | 0 | 79,253,755,270 | 2.5% | ||
steemychicken1 | 0 | 46,927,942,302 | 25% | ||
steemservices | 0 | 10,159,152,279 | 2.5% | ||
joseph | 0 | 51,066,272,121 | 25% | ||
aizensou | 0 | 100,686,739,359 | 25% | ||
b0y2k | 0 | 327,629,026,569 | 25% | ||
stoner19 | 0 | 10,831,248,187 | 25% | ||
germanaure | 0 | 1,623,567,383 | 100% | ||
richman | 0 | 77,085,334,702 | 25% | ||
daycrypter | 0 | 11,430,014,470 | 100% | ||
thecryptodrive | 0 | 13,429,984,173 | 20% | ||
trevonjb | 0 | 504,896,959,590 | 10% | ||
razvanelulmarin | 0 | 28,934,233,853 | 25% | ||
anyx | 0 | 204,721,978,947 | 20% | ||
raymondspeaks | 0 | 2,831,069,552 | 25% | ||
knozaki2015 | 0 | 484,349,810,704 | 25% | ||
shawnamawna | 0 | 8,539,839,363 | 25% | ||
hagie | 0 | 34,199,675,778 | 25% | ||
coinbar | 0 | 5,155,796,157 | 25% | ||
ozchartart | 0 | 67,811,675,832 | 2.5% | ||
caesarion | 0 | 5,264,055,421 | 25% | ||
thebluepanda | 0 | 48,252,997,295 | 25% | ||
yoshiko | 0 | 101,030,194,940 | 25% | ||
thisisbenbrick | 0 | 10,540,093,345 | 25% | ||
sirwinchester | 0 | 40,990,121,095 | 25% | ||
kiddarko | 0 | 15,487,605,241 | 12.5% | ||
kenistyles | 0 | 11,721,446,426 | 11% | ||
einsteinpotsdam | 0 | 7,753,060,603 | 25% | ||
dadview | 0 | 2,914,779,217 | 7.5% | ||
zahnspange | 0 | 580,835,054,177 | 25% | ||
thecyclist | 0 | 54,777,729,643 | 2.5% | ||
steemsquad | 0 | 2,693,045,453 | 25% | ||
anomaly | 0 | 231,220,179 | 1% | ||
allesgruen | 0 | 2,735,410,728 | 25% | ||
dannystravels | 0 | 20,125,819,901 | 25% | ||
drac59 | 0 | 1,094,184,486 | 100% | ||
jerryblanceton | 0 | 7,298,450,306 | 25% | ||
platinum-blue | 0 | 58,601,732,875 | 25% | ||
ssekulji | 0 | 29,510,945,793 | 25% | ||
timbernana | 0 | 10,609,865,003 | 25% | ||
sherlockcupid | 0 | 27,516,808,068 | 25% | ||
dark.horse | 0 | 5,842,821,782 | 25% | ||
adventureevryday | 0 | 11,280,295,330 | 25% | ||
samuelhull | 0 | 5,907,978,406 | 100% | ||
toyman | 0 | 13,634,706,167 | 25% | ||
demartini | 0 | 10,803,998,961 | 100% | ||
doryumira | 0 | 1,981,938,363 | 100% | ||
i-gordan | 0 | 12,145,308,963 | 25% | ||
steemcenterwiki | 0 | 512,520,568 | 5% | ||
playfulfoodie | 0 | 42,662,196,314 | 20% | ||
borepstein | 0 | 27,605,028,816 | 100% | ||
piscaryk | 0 | 9,714,328,669 | 100% | ||
yougotflagged | 0 | 8,466,233,078 | 2.5% | ||
buzzbeergeek | 0 | 11,905,186,431 | 25% | ||
ganjafarmer | 0 | 1,169,060,873 | 10% | ||
bigdaddy | 0 | 23,290,044,564 | 25% | ||
kingsmind | 0 | 5,526,708,205 | 25% | ||
icybc | 0 | 957,129,136 | 7% | ||
freebornsociety | 0 | 432,394,832 | 1% | ||
steemitcitizen | 0 | 989,520,211 | 12.5% | ||
nicnas | 0 | 19,536,558,646 | 50% | ||
romedog | 0 | 293,248,755,127 | 25% | ||
sunshinetraveler | 0 | 12,856,418,958 | 25% | ||
denisechips | 0 | 12,505,762,578 | 25% | ||
spg | 0 | 9,831,920,832 | 25% | ||
freefuture | 0 | 6,623,230,273 | 25% | ||
diogogomes | 0 | 248,286,013 | 81% | ||
kinakomochi | 0 | 19,030,286,380 | 25% | ||
lazzelazer | 0 | 7,387,052,885 | 100% | ||
derrick829 | 0 | 14,357,723,794 | 1% | ||
assetminds | 0 | 2,852,557,805 | 100% | ||
epixar | 0 | 611,732,481 | 100% | ||
professorbromide | 0 | 16,914,072,662 | 100% | ||
sammosk | 0 | 3,531,404,982 | 25% | ||
arbitrarykitten | 0 | 7,808,537,330 | 25% | ||
biancajapan | 0 | 8,780,308,910 | 25% | ||
thedelegator | 0 | 31,302,549,073 | 2.5% | ||
horsepower | 0 | 4,553,727,920 | 25% | ||
stitchybitch | 0 | 14,079,332,737 | 25% | ||
minnowbooster | 0 | 14,778,471,993,458 | 25% | ||
sanja-cash | 0 | 1,435,171,842 | 39% | ||
themarkymark | 0 | 50,385,725,423 | 100% | ||
krazypoet | 0 | 704,604,561 | 12.5% | ||
alexzicky | 0 | 12,239,205,009 | 25% | ||
avesa | 0 | 402,583,497 | 0.25% | ||
cryptokeepr | 0 | 10,150,010,937 | 10% | ||
topkpop | 0 | 10,725,615,338 | 10% | ||
teneiced | 0 | 4,297,502,053 | 25% | ||
sumayyahsaidso | 0 | 4,518,003,105 | 25% | ||
xpressng | 0 | 2,167,149,020 | 100% | ||
hairshares | 0 | 162,634,878,460 | 100% | ||
magnat | 0 | 10,204,552,382 | 13% | ||
podanrj | 0 | 11,877,811,568 | 100% | ||
simplifylife | 0 | 151,006,178 | 0.25% | ||
kriptonoob | 0 | 1,814,629,927 | 2.5% | ||
infamousit | 0 | 1,125,901,157 | 12.5% | ||
makerhacks | 0 | 10,074,936,422 | 20% | ||
erodedthoughts | 0 | 22,774,276,637 | 33% | ||
ngc | 0 | 35,316,939,245 | 2.5% | ||
shahab3211 | 0 | 599,368,071 | 100% | ||
andrekweku | 0 | 100,516,274 | 12.5% | ||
izge | 0 | 1,599,579,454 | 100% | ||
zeddjacob | 0 | 1,405,395,280 | 100% | ||
jexus77 | 0 | 577,634,876 | 100% | ||
yulem | 0 | 3,095,989,414 | 100% | ||
shaotech | 0 | 508,401,446 | 100% | ||
stabilowl | 0 | 61,374,780,615 | 53% | ||
mytechtrail | 0 | 2,483,149,337 | 25% | ||
cloris | 0 | 558,839,738 | 100% | ||
epearson | 0 | 203,164,171 | 25% | ||
drmincu | 0 | 3,647,315,438 | 100% | ||
steemusa | 0 | 8,195,479,373 | 13% | ||
deanhass | 0 | 1,540,061,671 | 100% | ||
cryptogem | 0 | 18,011,653,245 | 100% | ||
subramanimur638 | 0 | 50,663,944 | 100% | ||
leynedayana | 0 | 568,265,544 | 100% | ||
dieterhubert | 0 | 441,369,991 | 100% | ||
upmyvote | 0 | 30,587,103,944 | 100% | ||
nelkeljdm | 0 | 4,036,594,065 | 5% | ||
voaputra | 0 | 376,415,769 | 100% | ||
calligiato | 0 | 449,366,641 | 74.36% | ||
amos811 | 0 | 5,193,538,139 | 100% | ||
doverun | 0 | 459,156,345 | 100% | ||
davinsh | 0 | 3,722,256,292 | 100% | ||
pirsamads | 0 | 687,257,751 | 100% | ||
naika | 0 | 261,292,112 | 100% | ||
steemernoob | 0 | 573,505,281 | 100% | ||
thecreativerebel | 0 | 2,339,929,991 | 100% | ||
saqibnazir | 0 | 219,942,071 | 100% | ||
investfourmore | 0 | 16,386,838,253 | 20% | ||
niko3d | 0 | 4,023,369,374 | 100% | ||
cyber-smiley | 0 | 603,737,010 | 100% | ||
solascriptura | 0 | 611,175,348 | 100% | ||
ratamocha | 0 | 539,505,274 | 100% | ||
tuts | 0 | 602,893,342 | 100% | ||
erarnitox | 0 | 272,851,456 | 100% | ||
ipromote | 0 | 6,143,376,779,910 | 100% | ||
jvhplays | 0 | 611,557,247 | 100% | ||
z8teyb289qav9z | 0 | 924,483,230,897 | 10% | ||
nightdragon | 0 | 456,440,876 | 100% | ||
alghazalifahmy | 0 | 543,610,812 | 100% | ||
just.jules | 0 | 901,570,534 | 100% | ||
natsch | 0 | 424,708,691 | 100% | ||
talesfrmthecrypt | 0 | 8,327,871,549 | 100% | ||
luli1 | 0 | 614,550,133 | 100% | ||
tiababi | 0 | 539,127,306 | 100% | ||
gtmatze | 0 | 1,073,089,942 | 100% | ||
kirena | 0 | 361,116,116 | 100% | ||
jvhteach | 0 | 1,436,663,223 | 15% | ||
sekhet | 0 | 524,030,692 | 100% | ||
kessielynbote | 0 | 260,107,581 | 100% | ||
dream-o | 0 | 9,229,619,896 | 25% | ||
sshappydayz | 0 | 307,327,679 | 100% | ||
privacybydesign | 0 | 597,231,541 | 100% | ||
blerdrage | 0 | 4,827,106,783 | 100% | ||
skorpsim | 0 | 613,681,261 | 100% | ||
coincussion | 0 | 4,013,739,104 | 100% | ||
suntree | 0 | 503,904,616 | 100% | ||
emwalker | 0 | 481,787,955 | 100% | ||
linkyourlife | 0 | 3,800,968,328 | 25% | ||
qurator-tier-0 | 0 | 6,972,183,017 | 2% | ||
kelvo | 0 | 196,341,420 | 35% | ||
finanzamt | 0 | 602,215,136 | 100% | ||
andreasgrubhofer | 0 | 513,881,701 | 100% | ||
tushy | 0 | 194,691,642,434 | 100% | ||
lordgod | 0 | 486,538,257,113 | 10% | ||
tyramisoux | 0 | 484,012,756 | 100% | ||
mongoosely | 0 | 791,229,525 | 100% | ||
kryptogermany | 0 | 564,931,705 | 100% | ||
netzisde | 0 | 610,764,173 | 100% | ||
teslaman | 0 | 5,063,760,234 | 25% | ||
blondephysics | 0 | 5,759,624,348 | 25% | ||
rogz06 | 0 | 1,047,099,982 | 50% | ||
ambriya11nov | 0 | 307,893,394 | 100% | ||
linnyplant | 0 | 2,231,401,143 | 100% | ||
china-mobile | 0 | 487,269,317 | 100% | ||
elmundodexao | 0 | 516,281,213 | 100% | ||
donnjoez | 0 | 569,453,001 | 100% | ||
echovalormma | 0 | 135,804,760 | 10% | ||
trendmark | 0 | 144,182,235 | 100% | ||
arif48 | 0 | 566,239,397 | 100% | ||
deriom | 0 | 51,636,444 | 100% | ||
unmesh | 0 | 485,603,099 | 100% | ||
votebott | 0 | 587,626,237 | 100% | ||
thoughtfulonion | 0 | 611,596,251 | 100% | ||
oyundelisi | 0 | 456,018,883 | 100% | ||
bigboy9 | 0 | 440,382,641 | 100% | ||
falcon99 | 0 | 483,144,341 | 100% | ||
renulia | 0 | 620,201,777 | 100% | ||
sonder-an | 0 | 535,942,739 | 100% | ||
yachtdesigner | 0 | 610,847,314 | 100% | ||
sgerokos | 0 | 617,871,156 | 100% | ||
santoninoatocha | 0 | 454,933,125 | 100% |
Yes, we welcome such programs that serve many colleagues and friends
author | ahmedibrahem |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180508t194056835z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-07 20:41:24 |
last_update | 2018-05-07 20:41:24 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 20:41:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 68 |
author_reputation | 219,577,857,446 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,446,256 |
net_rshares | 0 |
Ohhh okay cool this is good, I'm a Python n00b so I had no idea about the difference in syntax between 3.5 and 3.6. I was using Intellij for awhile but I think I broke it and somehow Pycharm was giving me issues as well so now I just use IDLE and so far it's been pretty great. I tried rocking your example in that and it worked perfectly (well, except for the missing = after str heh 😅 ):  Thanks for posting this, @themarkymark! Will work my way through the rest 👍
author | doryumira |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180509t202711690z |
category | programming |
json_metadata | {"tags":["programming"],"users":["themarkymark"],"image":["https://steemitimages.com/DQmZx5ogJsQsLY7PrfRMi7Q2n9gVMw8rPcPiMdZ2b1rXxJK/TypeAnnotation.JPG"],"app":"steemit/0.1"} |
created | 2018-05-09 20:27:18 |
last_update | 2018-05-09 20:27:18 |
depth | 1 |
children | 0 |
last_payout | 2018-05-16 20:27:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 606 |
author_reputation | 317,206,043,765 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,818,450 |
net_rshares | 0 |
Cool series you have here. Are you going to do any tutorials on DTube?
author | epearson |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180512t004452676z |
category | programming |
json_metadata | {"tags":["programming"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-05-12 00:44:51 |
last_update | 2018-05-12 00:44:51 |
depth | 1 |
children | 0 |
last_payout | 2018-05-19 00:44:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 70 |
author_reputation | 3,706,173,905,950 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,207,657 |
net_rshares | 0 |
To be candid, the more i read more my head goes into the jungle. I thought you were talking about the snake python that we all know until i started reading programming. 😯
author | izge |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t211447293z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-07 21:15:48 |
last_update | 2018-05-07 21:15:48 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 21:15:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 170 |
author_reputation | 5,964,434,354,904 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,450,187 |
net_rshares | 0 |
Hi @themarkymark. I've choice you as one of my witness vote
author | lamkote |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180508t175039311z |
category | programming |
json_metadata | {"tags":["programming"],"users":["themarkymark"],"app":"steemit/0.1"} |
created | 2018-05-08 17:50:42 |
last_update | 2018-05-08 17:50:42 |
depth | 1 |
children | 1 |
last_payout | 2018-05-15 17:50:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 59 |
author_reputation | 503,988,111,781 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,609,705 |
net_rshares | 0 |
Thanks :)
author | themarkymark |
---|---|
permlink | re-lamkote-re-themarkymark-python-tips-type-annotation-20180508t175122634z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-08 17:51:21 |
last_update | 2018-05-08 17:51:21 |
depth | 2 |
children | 0 |
last_payout | 2018-05-15 17:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 9 |
author_reputation | 1,772,913,736,212,203 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,609,810 |
net_rshares | 0 |
Woke up, looked at steemit feed....did not expect to see a post on python. Not a developer and the time I last used that language was in Uni. :) Anyway, your post made me wonder why I wanted to relearn a while ago, because I had a friend who kept insisting I should learn ruby instead. I’ve only ever needed to use JavaScript for work. Anyway, no time for learning a new coding language atm, but nice little reminder.
author | linnyplant |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t214714642z |
category | programming |
json_metadata | {"tags":["programming"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-05-07 21:47:18 |
last_update | 2018-05-07 21:47:18 |
depth | 1 |
children | 3 |
last_payout | 2018-05-14 21:47:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 423 |
author_reputation | 8,362,930,383,944 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,453,418 |
net_rshares | 0 |
If you already know one language, other will not be as hard to learn. That said, classical JavaScript is used in the browser and therefore a little different in its usage. Python, Ruby and JavaScript on Node are pretty similar though. Not having time is a bad excuse. "Translate" one concept you know from one language to another each week and you will be a pro in no time ;)
author | piscaryk |
---|---|
permlink | re-linnyplant-re-themarkymark-python-tips-type-annotation-20180509t155442205z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-09 15:54:42 |
last_update | 2018-05-09 15:54:42 |
depth | 2 |
children | 2 |
last_payout | 2018-05-16 15:54:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 376 |
author_reputation | 38,384,075,363 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,778,560 |
net_rshares | 2,210,134,553 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
linnyplant | 0 | 2,210,134,553 | 100% |
‘Time’ is a valid excuse. My days are filled with configuring software and current system does not need me to customise existing JavaScript anymore. I’d need an excuse to learn Python. It’s been on the back of my mind it’s a useful language for years, but current interests that take my free time is writing. Maybe when I give myself a programming challenge, I’ll look into the Steemit development side of things as a different focus. That interests me, but I just need <i>time</i>. Thank you for the encouragement though. :)
author | linnyplant |
---|---|
permlink | re-piscaryk-re-linnyplant-re-themarkymark-python-tips-type-annotation-20180509t213813055z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-09 21:38:12 |
last_update | 2018-05-09 21:38:12 |
depth | 3 |
children | 1 |
last_payout | 2018-05-16 21:38:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.036 HBD |
curator_payout_value | 0.009 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 532 |
author_reputation | 8,362,930,383,944 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,828,598 |
net_rshares | 9,714,450,831 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
piscaryk | 0 | 9,714,450,831 | 100% |
A most perfect idea @themarkymark A meaningful learning in doing pemogramman Something that can ease to accelerate the activities we do in terms of typing using Python is easy for us to do our activities. Thank's @themarkymark it important step <hr> https://steemitimages.com/DQmWVTd56QaVvrwMGQLXdZAv66VGdhTeKvBQLMkLYJNk3q2/imageedit_10_7647874724.gif <hr>
author | lovelyworld |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t212638762z |
category | programming |
json_metadata | {"tags":["programming"],"users":["themarkymark"],"image":["https://steemitimages.com/DQmWVTd56QaVvrwMGQLXdZAv66VGdhTeKvBQLMkLYJNk3q2/imageedit_10_7647874724.gif"],"app":"steemit/0.1"} |
created | 2018-05-07 21:26:45 |
last_update | 2018-05-07 21:26:45 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 21:26:45 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 357 |
author_reputation | 946,631,386,385 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,451,339 |
net_rshares | 327,814,778 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
emilex | 0 | 327,814,778 | 100% |
Ooh, I like it. Coming from strongly typed languages, it has been a debugging worry of mine :)
author | makerhacks |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t205941201z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-07 20:59:42 |
last_update | 2018-05-07 20:59:42 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 20:59:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 94 |
author_reputation | 155,660,722,814,579 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,448,306 |
net_rshares | 0 |
mate, apologies for hijacking another of your incredible posts about snakes, but as the no.1 abuse blocker here, could I just draw your attention to this screenshot please. Perhaps you might like to investigate further via his blog shown on the pic...this is the 4th or 5th time hes bought a lot of accounts this way.  The site is microworkers and there is more and more of this shit going on there including circle jerking circles and paid for upvotes to win competitions etc.
author | nathen007 |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t214649561z |
category | programming |
json_metadata | {"tags":["programming"],"image":["https://steemitimages.com/DQmNpZq769SjoHUtBURStGgonMd22rZbqUHS3ZXrULrGQrq/Screenshot_71.png"],"app":"steemit/0.1"} |
created | 2018-05-07 21:46:51 |
last_update | 2018-05-07 21:49:27 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 21:46:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 590 |
author_reputation | 258,444,909,480,655 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,453,372 |
net_rshares | 4,669,583,616 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
nathen007 | 0 | 4,669,583,616 | 100% |
<div class="pull-left"><img src="" /></div> <center>You just received a Tier 0 upvote! Looking for bigger rewards? Click [here](https://steemit.com/qurator/@qurator/qurator-tier-changes) and learn how to get them or visit us on [Discord](https://discord.gg/nhQehdv)</center>
author | qurator-tier-0 |
---|---|
permlink | re-python-tips-type-annotation-20180508t082101 |
category | programming |
json_metadata | "" |
created | 2018-05-08 08:21:03 |
last_update | 2018-05-08 08:21:03 |
depth | 1 |
children | 0 |
last_payout | 2018-05-15 08:21:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 377 |
author_reputation | 59,310,010,441 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,527,878 |
net_rshares | 0 |
Good to know about those annotation. Thanks for sharing. If you have some time then please take a look to my open source app I made for Steemit’s user. It’s about steemit recent posts feed widget. [Steemit recent post widget](https://steemit.com/steemit/@techstack/improvisation-of-my-steemit-recent-posts-app-widget)
author | techstack |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t211052422z |
category | programming |
json_metadata | {"tags":["programming"],"links":["https://steemit.com/steemit/@techstack/improvisation-of-my-steemit-recent-posts-app-widget"],"app":"steemit/0.1"} |
created | 2018-05-07 21:10:54 |
last_update | 2018-05-07 21:11:27 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 21:10:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 317 |
author_reputation | 745,033,069,601 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,449,622 |
net_rshares | 0 |
<h3>This post has received votes totaling more than $50.00 from the following pay for vote services:</h3> minnowbooster upvote in the amount of $84.65 STU, $166.77 USD. **For a total calculated value of $85 [STU,](http://steem.supply/rewards) $167 USD before curation, with approx. $21 USD curation being earned by the paid voters.** This information is being presented in the interest of transparency on our platform @themarkymark **and is by no means a judgement of your work.**
author | transparencybot |
---|---|
permlink | re-python-tips-type-annotation--bidbot |
category | programming |
json_metadata | {"tags":["bidbot","transparencybot"],"users":["themarkymark"],"links":["http://steem.supply/rewards"],"app":"null/null","format":"markdown"} |
created | 2018-05-07 20:52:30 |
last_update | 2018-05-08 20:04:39 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 20:52:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 489 |
author_reputation | -5,641,716,862,244 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,447,495 |
net_rshares | 0 |
I do "C" and Assembler but really fight with this high-level languages. There also too much changes with the different versions which really sucks. Maybe I finally get used to it now using "beem" library. This stuff force me using python.
author | tyramisoux |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180507t205253932z |
category | programming |
json_metadata | {"tags":["programming"],"community":"busy","app":"busy/2.4.0"} |
created | 2018-05-07 20:53:00 |
last_update | 2018-05-07 20:55:03 |
depth | 1 |
children | 0 |
last_payout | 2018-05-14 20:53:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 238 |
author_reputation | 2,303,164,298,271 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,447,550 |
net_rshares | 0 |
Wow! This looks amazing but I'm confused. As much as i like programming, i feel the process is really strenous. I like that all the codes put together just form an awesome outcome. LInes like this > Python IDE's like PyChar Just made me more confused😭😭 this is not for me. Kudos to programmers. Y'all deserve some accolade
author | xpressng |
---|---|
permlink | re-themarkymark-python-tips-type-annotation-20180508t231143547z |
category | programming |
json_metadata | {"tags":["programming"],"app":"steemit/0.1"} |
created | 2018-05-08 23:11:48 |
last_update | 2018-05-08 23:11:48 |
depth | 1 |
children | 0 |
last_payout | 2018-05-15 23:11:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.530 HBD |
curator_payout_value | 0.175 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 329 |
author_reputation | 1,101,366,627,102 |
root_title | "[Python Tips] Type Annotation" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 54,649,790 |
net_rshares | 145,470,025,240 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gutzygwin | 0 | 145,470,025,240 | 100% |