[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hey guys, noob anon here, I'm using an android app to learn

You are currently reading a thread in /g/ - Technology

Thread replies: 6
Thread images: 1
File: Screenshot_2016-07-02-03-58-05.png (95 KB, 1080x1920) Image search: [Google]
Screenshot_2016-07-02-03-58-05.png
95 KB, 1080x1920
Hey guys, noob anon here, I'm using an android app to learn some things about Python, but I don't understand this code, can someone explain? The solution of the 2nd line says that I must fill with a +, but why?
>>
Because "+=" means "the variable will add the following number to itself."

x += 5

is the same as saying

x = x + 5

which is the same as saying

"x's new value will be its current value plus five."
>>
>>55386314
Thx a lot anon! I spent all the night thinking about that :)
>>
>>55386334
You can also do it with -=, *=, /=, and a few more in some languages.
>>
>>55386280
>trying to learn from an app made by pooinloos
>>
what is this bastardization of Material Design
Thread replies: 6
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK