Viewing a response to: @scipio/re-fabiyamada-re-scipio-learn-python-series-intro-20180227t100433348z
:o! It is a bit clearer! I think I need to experiment with this! (I will google for more practical examples)... What I understand is you can set the value of 2 vars in the same line a, b = 0, 1. Which is so new for me! And seems that is what makes the magic happen... And you create a second line to take the old values and make it work... Oh maybe I am not making any sense x.x I will study sensei!!
author | fabiyamada |
---|---|
permlink | re-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180227t123607422z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-02-27 12:36:15 |
last_update | 2018-02-27 12:36:15 |
depth | 3 |
children | 2 |
last_payout | 2018-03-06 12:36:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.184 HBD |
curator_payout_value | 0.058 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 402 |
author_reputation | 55,606,801,081,779 |
root_title | "Learn Python Series - Intro" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 40,859,013 |
net_rshares | 42,649,000,416 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
scipio | 0 | 42,649,000,416 | 44% |
You are making sense, and yes that's exactly how `a, b = 0, 1` works! Initializing two variables with their own value in one line. PS: in case you would have multiple variables all set to the same value, you could do this: ``` a = b = c = d = 'fabiyamada' print(a, b, c, d) # fabiyamada fabiyamada fabiyamada fabiyamada ```
author | scipio |
---|---|
permlink | re-fabiyamada-re-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180303t175105590z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-03-03 17:51:06 |
last_update | 2018-03-03 17:52:12 |
depth | 4 |
children | 1 |
last_payout | 2018-03-10 17:51:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.392 HBD |
curator_payout_value | 0.125 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 326 |
author_reputation | 34,229,826,851,736 |
root_title | "Learn Python Series - Intro" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,926,303 |
net_rshares | 120,926,948,140 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fabiyamada | 0 | 14,711,235,126 | 25% | ||
scipio | 0 | 106,215,713,014 | 100% |
Thanks scip!
author | fabiyamada |
---|---|
permlink | re-scipio-re-fabiyamada-re-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180303t184550437z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-03-03 18:45:51 |
last_update | 2018-03-03 18:45:51 |
depth | 5 |
children | 0 |
last_payout | 2018-03-10 18:45: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 | 12 |
author_reputation | 55,606,801,081,779 |
root_title | "Learn Python Series - Intro" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 41,936,445 |
net_rshares | 0 |