 --- #### Repository https://github.com/python #### What will I learn - ASCII values of characters - Converting a string into a unique set of lowercase characters - Remove characters from a string #### Requirements - Python 3.7.2 - [Pipenv](https://pypi.org/project/pipenv/) - git #### Difficulty - basic --- ### Tutorial #### Preface This tutorial is part of a course where solutions to puzzles from [Advent of Code 2018](https://adventofcode.com/2018/) are discussed to explain programming techniques using Python. Each puzzle contains two parts and comes with user specific inputs. It is recommended to try out the puzzle first before going over the tutorial. Puzzles are a great and fun way to learn about programming. While the puzzles start of relatively easy and get more difficult over time. Basic programming understanding is required. Such as the different type of variables, lists, dicts, functions and loops etc. A course like [Learn Python2 from Codeacademy](https://www.codecademy.com/learn/learn-python) should be sufficient. Even though the course is for Python two, while Python 3 is used. This tutorial will look at [puzzle 4](https://adventofcode.com/2018/day/4) The code for this tutorial can be found on [Github](https://github.com/Juless89/tutorials-aoc)! #### Puzzle 4 This puzzle is about chemical reactions that are mapped inside a string. Characters react with each other and disappear when they are the same pair, but opposite polarity. Polarity is distinguished by capital and non capital characters. For example aA, bB and cC are pairs with opposite polarity. #### Part one > How many units remain after fully reacting the polymer you scanned? A long strong is given, calculating the final length of the string after all pairs have reacted can be done by going over each character and comparing that to the next one. ``` # read input file and convert to string with open('input.txt', 'r') as file: string = str([x.strip() for x in file][0]) ``` #### ASCII values of characters Every character has a ASCII values, this is how characters can be recognised across operating systems. Characters can be checked to be equal based on their ASCII value. In addition arithmetic can be performed on the ASCII value to transfers the character. For example from a lowercase to an uppercase. In python `ord()` is used to convert a character into their ASCII value, while `chr()` is used to convert an ASCII values into a character. `A` has the value of 65 and `a` has a value of 97. There is a 32 difference. Converting an uppercase to a lowercase is done by adding 32 to ASCII value, while converting to a lowercase is done by subtracting 32. A full list can be found [here](https://www.ascii-code.com/) <center></center> ``` def part_1(string): # filtered characters filtered = [''] # loop over each character inside the string # if the next character is the opposite case # discard both characters, else append to result for c in string: c2 = filtered[-1] # check by ASCII values if c2 != '' and (abs(ord(c) - ord(c2))) == 32: filtered.pop() else: filtered.append(c) # return length of string return len(filtered) ``` <br> `filtered` contains all the characters that could not immediately be reacted. For each character `c` in the string, `c2` is the last filtered character `filtered[-1]`. `c2` is checked to not be empty, then the ASCII value is taken from both `c` and `c2` and the difference is checked to be equal to 32. This is done by using `abs()` which return the absolute value. When the difference is 32, the last filtered character gets removed with `pop()`. If there is no match `c` get added to `filtered`. In the end the string of list is returned, which is the answer to the first part of the puzzle. Instead of doing the ASCII arithmetic by hand Python has a function `swapcase()` which does the same thing. This leads to the following code: ``` before if c2 != '' and (abs(ord(c) - ord(c2))) == 32: after if c == c2.swapcase(): ``` #### Part two > What is the length of the shortest polymer you can produce by removing all units of exactly one type and fully reacting the result? Solving this part of the puzzle can be done by reusing the code from the previous part but making one change to the string beforehand. That is, removing all units of exactly one type. #### Converting a string into a unique set of lowercase characters Each type consists of a lower and uppercase character. To create a set of all types it is easier to either go for all lowercase or all uppercase. This can be done with `.lower()` or `.upper()`. `Set()` can then be used to take out all the unique characters. ``` def part_2(string): # return set off all unique lower case units types = set(string.lower()) ``` This results in: ``` {'v', 'q', 'z', 'a', 'p', 'k', 'r', 'n', 's', 'j', 'e', 'u', 'h', 'f', 'c', 'm', 'y', 'o', 'g', 'w', 'b', 'x', 'i', 'd', 'l', 't'} ``` This set can now be used to remove all upper and lowercase variants form the input string. #### Remove characters from a string Removing characters can be done by using `.replace()` which takes two arguments. The character to be replaced and what to replace the character with. To remove something replacing the character with the empty string `''` does the job. ``` # return min for filtered string where lower and upper case of unit are removed return (min([part_1(string.replace(t, '').replace(t.upper(), '')) for t in types])) ``` Each character is taken from the set `types` and used to replace that character inside the string for the empty string. To remove the upper case variants `t` is also casted to an uppercase. This is done in a list comprehension that calls the function for `part_1`, which returns the length of the output string. `min()` is taken from this list to return the lowest number. #### Running the code Run the code with: `python main.py`. This returns both answers for the first and second part of the puzzle. ``` if __name__ == "__main__": # read input file and convert to string with open('input.txt', 'r') as file: string = str([x.strip() for x in file][0]) print(f'Part 1 Answer: {part_1(string)}') print(f'Part 2 Answer: {part_2(string)}') ``` <br> <center></center> #### Curriculum [Part 1](https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-1---solving-puzzles-from-advent-of-code-2018), [Part 2](https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-2---solving-puzzles-from-advent-of-code-2018), [Part 3](https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-3---solving-puzzles-from-advent-of-code-2018), [Part 4](https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018) --- The code for this tutorial can be found on [Github](https://github.com/Juless89/tutorials-aoc)! This tutorial was written by @juliank.
author | steempytutorials | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | -learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018 | ||||||||||||
category | utopian-io | ||||||||||||
json_metadata | {"tags":["utopian-io","tutorials","python","course","programming"],"app":"steemit/0.1","users":["juliank"],"image":["https://www.digifloor.com/wp-content/uploads/2016/07/python-banner.jpg","https://cdn.steemitimages.com/DQmU4R5ZtcioieTak6hmU51mU1MHVuLq8bsNU6KW42gHf3E/Apr-12-2019%2019-18-48.gif","https://cdn.steemitimages.com/DQmUot6Z9JTeFY5D9XRqyijXW7nLnhhyq1Nk4mVjt3xxWXz/Screenshot%202019-04-12%20at%2020.07.42.png"],"links":["https://github.com/python","https://pypi.org/project/pipenv/","https://adventofcode.com/2018/","https://www.codecademy.com/learn/learn-python","https://adventofcode.com/2018/day/4","https://github.com/Juless89/tutorials-aoc","https://www.ascii-code.com/","https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-1---solving-puzzles-from-advent-of-code-2018","https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-2---solving-puzzles-from-advent-of-code-2018","https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-3---solving-puzzles-from-advent-of-code-2018","https://steemit.com/utopian-io/@steempytutorials/learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018"],"format":"markdown"} | ||||||||||||
created | 2019-04-12 18:10:54 | ||||||||||||
last_update | 2019-04-12 18:40:15 | ||||||||||||
depth | 0 | ||||||||||||
children | 6 | ||||||||||||
last_payout | 2019-04-19 18:10:54 | ||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||
total_payout_value | 17.442 HBD | ||||||||||||
curator_payout_value | 5.750 HBD | ||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||
promoted | 0.000 HBD | ||||||||||||
body_length | 7,454 | ||||||||||||
author_reputation | 31,094,047,689,691 | ||||||||||||
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" | ||||||||||||
beneficiaries |
| ||||||||||||
max_accepted_payout | 100,000.000 HBD | ||||||||||||
percent_hbd | 10,000 | ||||||||||||
post_id | 82,973,554 | ||||||||||||
net_rshares | 40,149,151,323,630 | ||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tombstone | 0 | 3,964,134,273,249 | 16.12% | ||
camponez | 0 | 39,199,118,335 | 100% | ||
daan | 0 | 15,798,545,744 | 5% | ||
jza | 0 | 34,978,684,745 | 100% | ||
rufans | 0 | 18,752,261,247 | 100% | ||
marina007 | 0 | 437,644,607 | 2% | ||
roy2016 | 0 | 169,299,485,285 | 30% | ||
abh12345 | 0 | 11,000,336,486 | 2.01% | ||
techslut | 0 | 44,164,602,976 | 10% | ||
bukiland | 0 | 379,598,933 | 1.1% | ||
minersean | 0 | 7,311,770,326 | 75% | ||
erikaflynn | 0 | 13,615,616,586 | 35% | ||
miniature-tiger | 0 | 101,377,830,941 | 50% | ||
aleister | 0 | 7,200,035,450 | 15% | ||
jakipatryk | 0 | 15,115,964,664 | 50% | ||
jga | 0 | 2,488,545,599 | 20.15% | ||
helo | 0 | 228,165,126,183 | 100% | ||
lorenzor | 0 | 1,154,362,001 | 10.07% | ||
suesa | 0 | 134,938,698,228 | 25% | ||
drorion | 0 | 92,461,209,681 | 100% | ||
codingdefined | 0 | 46,159,230,398 | 40% | ||
tsoldovieri | 0 | 1,459,469,537 | 10.07% | ||
tykee | 0 | 9,926,781,526 | 20.15% | ||
iamphysical | 0 | 15,902,614,480 | 90% | ||
felixrodriguez | 0 | 552,786,199 | 7.05% | ||
azulear | 0 | 504,933,989 | 100% | ||
silviu93 | 0 | 5,353,960,256 | 20.15% | ||
jadabug | 0 | 1,623,031,248 | 1% | ||
dakeshi | 0 | 781,803,984 | 20.15% | ||
accelerator | 0 | 5,677,867,610 | 0.35% | ||
eastmael | 0 | 8,061,033,282 | 40.3% | ||
buckydurddle | 0 | 18,940,538,365 | 100% | ||
espoem | 0 | 78,955,835,658 | 45.03% | ||
mcfarhat | 0 | 27,135,708,962 | 16% | ||
vishalsingh4997 | 0 | 137,663,821 | 20.15% | ||
steem-plus | 0 | 10,678,504,876 | 0.71% | ||
elear | 0 | 10,480,441,089 | 40.3% | ||
zoneboy | 0 | 21,733,529,403 | 100% | ||
carloserp-2000 | 0 | 35,821,603,462 | 100% | ||
carlos84 | 0 | 926,682,229 | 20.15% | ||
che-shyr | 0 | 1,060,252,767 | 50% | ||
utopian-io | 0 | 33,001,532,210,168 | 40.3% | ||
imisstheoldkanye | 0 | 1,717,760,916 | 1% | ||
jaff8 | 0 | 69,425,889,655 | 40% | ||
newsrx | 0 | 89,665,510 | 7.07% | ||
mytechtrail | 0 | 1,483,850,397 | 50% | ||
amestyj | 0 | 801,098,416 | 20.15% | ||
mcyusuf | 0 | 2,726,824,644 | 20.15% | ||
alexs1320 | 0 | 36,510,617,225 | 25% | ||
gentleshaid | 0 | 38,702,652,447 | 40.3% | ||
cpufronz | 0 | 1,366,707,244 | 50% | ||
ivymalifred | 0 | 341,600,386 | 10.07% | ||
aussieninja | 0 | 7,272,417,002 | 20.15% | ||
ennyta | 0 | 150,811,313 | 10.07% | ||
zool237 | 0 | 44,778,477,293 | 100% | ||
vjap55 | 0 | 1,776,725,973 | 100% | ||
amosbastian | 0 | 107,251,193,460 | 40% | ||
eliaschess333 | 0 | 1,973,666,768 | 10.07% | ||
harry-heightz | 0 | 17,912,882,630 | 40.3% | ||
scienceangel | 0 | 48,912,384,849 | 50% | ||
portugalcoin | 0 | 16,138,178,688 | 15% | ||
vanarchist | 0 | 2,800,369,523 | 100% | ||
sargoon | 0 | 1,475,983,024 | 20.15% | ||
darewealth | 0 | 7,100,669,331 | 40.3% | ||
tobias-g | 0 | 148,023,502,534 | 42% | ||
dongentle2 | 0 | 4,969,784,245 | 20.15% | ||
miguelangel2801 | 0 | 120,558,480 | 10.07% | ||
steempytutorials | 0 | 8,814,977,196 | 100% | ||
didic | 0 | 29,942,847,538 | 25% | ||
emiliomoron | 0 | 857,230,704 | 10.07% | ||
degrimmis | 0 | 5,495,720,546 | 100% | ||
mirkosche | 0 | 390,317,120 | 100% | ||
ulisesfl17 | 0 | 915,800,645 | 30% | ||
arac | 0 | 129,298,163 | 10% | ||
endopediatria | 0 | 100,279,940 | 4.03% | ||
reazuliqbal | 0 | 41,418,351,431 | 25% | ||
properfraction | 0 | 2,933,644,152 | 100% | ||
tomastonyperez | 0 | 2,354,789,860 | 10.07% | ||
elvigia | 0 | 2,047,059,985 | 10.07% | ||
jubreal | 0 | 6,110,373,374 | 40.3% | ||
ezravandi | 0 | 3,105,540,567 | 1% | ||
yu-stem | 0 | 10,332,663,817 | 25% | ||
luiscd8a | 0 | 1,408,560,375 | 80% | ||
eniolw | 0 | 8,004,569,994 | 100% | ||
geadriana | 0 | 76,257,480 | 3.02% | ||
josedelacruz | 0 | 1,063,844,251 | 10.07% | ||
joseangelvs | 0 | 357,121,501 | 20.15% | ||
viannis | 0 | 284,394,759 | 10.07% | ||
rollthedice | 0 | 4,481,331,741 | 40.3% | ||
feronio | 0 | 1,077,689,482 | 100% | ||
flores39 | 0 | 400,656,615 | 100% | ||
erickyoussif | 0 | 434,503,628 | 20.15% | ||
fw206 | 0 | 41,143,086,914 | 100% | ||
anaestrada12 | 0 | 4,395,767,465 | 20.15% | ||
channel64 | 0 | 394,891,384 | 100% | ||
joelsegovia | 0 | 364,698,615 | 10.07% | ||
jesusfl17 | 0 | 400,327,668 | 100% | ||
bflanagin | 0 | 3,541,420,327 | 20.15% | ||
ubaldonet | 0 | 4,027,638,647 | 65% | ||
lucky-robin | 0 | 287,640,811 | 100% | ||
dalz | 0 | 6,002,431,550 | 16.12% | ||
ulockblock | 0 | 48,724,182,733 | 14.5% | ||
zuerich | 0 | 114,139,269,344 | 25% | ||
amart29 | 0 | 312,090,489 | 3.02% | ||
jk6276 | 0 | 3,628,902,427 | 20.15% | ||
dssdsds | 0 | 2,362,034,239 | 20.15% | ||
jayplayco | 0 | 84,364,737,519 | 20.15% | ||
cryptouno | 0 | 415,927,773 | 5% | ||
lupafilotaxia | 0 | 16,914,830,102 | 100% | ||
fran.frey | 0 | 329,261,535 | 10.07% | ||
alaiza | 0 | 472,599,286 | 100% | ||
mops2e | 0 | 519,446,979 | 36.02% | ||
jrevilla | 0 | 62,126,673 | 20.15% | ||
stem-espanol | 0 | 14,178,786,606 | 20.15% | ||
zuur | 0 | 12,208,951,635 | 100% | ||
lapp | 0 | 471,446,326 | 100% | ||
steemtpistia | 0 | 470,510,912 | 100% | ||
crassipes | 0 | 471,121,202 | 100% | ||
agrovision | 0 | 471,510,702 | 100% | ||
luueetang | 0 | 4,537,558,794 | 100% | ||
steem-ua | 0 | 651,047,016,545 | 7.07% | ||
giulyfarci52 | 0 | 173,897,987 | 10.07% | ||
votes4minnows | 0 | 236,444,100 | 2% | ||
kaczynski | 0 | 118,152,592 | 100% | ||
hdu | 0 | 957,974,488 | 1% | ||
alex-hm | 0 | 1,225,393,477 | 50% | ||
bluesniper | 0 | 20,140,423,523 | 6.4% | ||
mrsbozz | 0 | 603,236,112 | 25% | ||
ascorphat | 0 | 1,870,752,495 | 2.5% | ||
circa | 0 | 138,747,444,399 | 100% | ||
rewarding | 0 | 5,155,676,823 | 70.15% | ||
bejust | 0 | 1,831,655,509 | 100% | ||
jk6276.mons | 0 | 462,373,357 | 40.3% | ||
hamsa.quality | 0 | 837,908,874 | 1% | ||
progressing | 0 | 1,624,831,636 | 100% | ||
jaxson2011 | 0 | 1,551,153,814 | 40.3% | ||
utopian.trail | 0 | 16,098,019,463 | 40.3% | ||
dicetime | 0 | 39,113,478,387 | 20.15% |
Thank you for your contribution @steempytutorials. After reviewing your tutorial we suggest the following points listed below: - Again a very well structured and explained tutorial, with GIFs demonstrating the results of what you are explaining. Your tutorials are very intuitive and easy to read. Good job! Your tutorials are excellent, thank you for your good work in developing your contribution. We are waiting for more tutorials. Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/8/3-1-1-1-1-2-1-3-). ---- Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | portugalcoin |
---|---|
permlink | re-steempytutorials--learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018-20190413t093937102z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["steempytutorials"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/8/3-1-1-1-1-2-1-3-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2019-04-13 09:39:36 |
last_update | 2019-04-13 09:39:36 |
depth | 1 |
children | 1 |
last_payout | 2019-04-20 09:39:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 5.052 HBD |
curator_payout_value | 1.562 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 888 |
author_reputation | 598,828,312,571,988 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 83,009,776 |
net_rshares | 10,711,072,157,358 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yuxi | 0 | 24,076,870,973 | 100% | ||
codingdefined | 0 | 39,016,292,802 | 33.42% | ||
osm0sis | 0 | 3,423,372,664 | 5% | ||
espoem | 0 | 27,043,018,412 | 15% | ||
utopian-io | 0 | 10,322,414,360,785 | 11.39% | ||
jaff8 | 0 | 60,176,820,839 | 33.42% | ||
emrebeyler | 0 | 0 | 0.01% | ||
zapncrap | 0 | 3,326,893,327 | 5% | ||
amosbastian | 0 | 91,175,608,696 | 33.42% | ||
ismailkah | 0 | 4,035,840,225 | 25% | ||
curx | 0 | 3,629,916,911 | 5% | ||
organicgardener | 0 | 10,546,816,993 | 35% | ||
sudefteri | 0 | 7,766,488,421 | 100% | ||
amico | 0 | 1,069,795,577 | 0.55% | ||
mightypanda | 0 | 75,115,994,396 | 40% | ||
ulockblock | 0 | 29,916,937,223 | 8.58% | ||
fastandcurious | 0 | 317,278,974 | 100% | ||
curbot | 0 | 2,518,836,701 | 100% | ||
linknotfound | 0 | 289,565,651 | 100% | ||
ascorphat | 0 | 1,825,381,779 | 2.5% | ||
monster-inc | 0 | 2,304,966,181 | 100% | ||
holydog | 0 | 802,283,406 | 2% | ||
cleanit | 0 | 278,816,422 | 55% |
Thank you for your review, @portugalcoin! Keep up the good work!
author | utopian-io |
---|---|
permlink | re-re-steempytutorials--learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018-20190413t093937102z-20190415t190135z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.17"}" |
created | 2019-04-15 19:01:36 |
last_update | 2019-04-15 19:01:36 |
depth | 2 |
children | 0 |
last_payout | 2019-04-22 19:01:36 |
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 | 64 |
author_reputation | 152,955,367,999,756 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 83,155,804 |
net_rshares | 0 |
Hi, @steempytutorials! You just got a **0.71%** upvote from SteemPlus! To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn. If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
author | steem-plus |
---|---|
permlink | -learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018---vote-steemplus |
category | utopian-io |
json_metadata | {} |
created | 2019-04-12 21:26:48 |
last_update | 2019-04-12 21:26:48 |
depth | 1 |
children | 0 |
last_payout | 2019-04-19 21:26: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 | 443 |
author_reputation | 247,952,188,232,400 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 82,983,643 |
net_rshares | 0 |
#### Hi @steempytutorials! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
author | steem-ua |
---|---|
permlink | re--learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018-20190413t135048z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.19"}" |
created | 2019-04-13 13:50:48 |
last_update | 2019-04-13 13:50:48 |
depth | 1 |
children | 0 |
last_payout | 2019-04-20 13:50:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.022 HBD |
curator_payout_value | 0.007 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 295 |
author_reputation | 23,214,230,978,060 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 83,021,695 |
net_rshares | 48,048,322,748 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
steembasicincome | 0 | 48,048,322,748 | 1.77% |
Congratulations @steempytutorials! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@steempytutorials/voted.png?201904131021</td><td>You received more than 5000 upvotes. Your next target is to reach 6000 upvotes.</td></tr> </table> <sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@steempytutorials) and compare to others on the [Steem Ranking](http://steemitboard.com/ranking/index.php?name=steempytutorials)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-steempytutorials-20190413t115838000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-04-13 11:58:36 |
last_update | 2019-04-13 11:58:36 |
depth | 1 |
children | 0 |
last_payout | 2019-04-20 11:58:36 |
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 | 864 |
author_reputation | 38,975,615,169,260 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 83,016,275 |
net_rshares | 0 |
Hey, @steempytutorials! **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Get higher incentives and support Utopian.io!** Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)). **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re--learn-how-to-program-with-python-4---solving-puzzles-from-advent-of-code-2018-20190413t213942z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.17"}" |
created | 2019-04-13 21:39:45 |
last_update | 2019-04-13 21:39:45 |
depth | 1 |
children | 0 |
last_payout | 2019-04-20 21:39: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 | 598 |
author_reputation | 152,955,367,999,756 |
root_title | "Python #5 - Solving Puzzles from Advent of Code 2018 - String/character functions" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 83,042,149 |
net_rshares | 0 |