create account

RE: Learn Python Series - Intro by fabiyamada

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @scipio/re-fabiyamada-re-scipio-learn-python-series-intro-20180227t100433348z

· @fabiyamada ·
$0.24
: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!!
👍  
properties (23)
authorfabiyamada
permlinkre-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180227t123607422z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-27 12:36:15
last_update2018-02-27 12:36:15
depth3
children2
last_payout2018-03-06 12:36:15
cashout_time1969-12-31 23:59:59
total_payout_value0.184 HBD
curator_payout_value0.058 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length402
author_reputation55,606,801,081,779
root_title"Learn Python Series - Intro"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,859,013
net_rshares42,649,000,416
author_curate_reward""
vote details (1)
@scipio · (edited)
$0.52
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
```
👍  ,
properties (23)
authorscipio
permlinkre-fabiyamada-re-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180303t175105590z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-03-03 17:51:06
last_update2018-03-03 17:52:12
depth4
children1
last_payout2018-03-10 17:51:06
cashout_time1969-12-31 23:59:59
total_payout_value0.392 HBD
curator_payout_value0.125 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length326
author_reputation34,229,826,851,736
root_title"Learn Python Series - Intro"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,926,303
net_rshares120,926,948,140
author_curate_reward""
vote details (2)
@fabiyamada ·
Thanks scip!
properties (22)
authorfabiyamada
permlinkre-scipio-re-fabiyamada-re-scipio-re-fabiyamada-re-scipio-learn-python-series-intro-20180303t184550437z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-03-03 18:45:51
last_update2018-03-03 18:45:51
depth5
children0
last_payout2018-03-10 18:45:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation55,606,801,081,779
root_title"Learn Python Series - Intro"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,936,445
net_rshares0