![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/db7182d9-181a-45e1-b0aa-6768f144911a.jpeg)
The name game? Lmao.
The name game? Lmao.
Yup. You’ll see functions wrapped inside other functions all the time. The function on the inside will run first, then the next, etc.
In the example I gave, the value of nam is a string. But it you need to perform some mathematical function to it, it needs to be interpreted as a number. So once the value is received, int() will convert it into a number. Finally, that final value will be assigned to nam. Wrapping functions inside of functions is a great way to write concise code.
I think you need to look into string concatenation, the easiest and best of which is f strings. You could do something like;
print(f’welcome, {nam}')
You could also “add” the strings together.
print('welcome, ’ + nam)
Another thing, when assigning the output of something to a variable, you can think of it as “the result of the code right of the equals sign is the value of the variable”.
The input function assumes that the value should be interpreted as a string, but what if want it to be a number? You can just wrap another function around your input
user_number = int(input(‘what’s the number?’))
Yup. The corruption is blatant, and the worst part is, they don’t even hide it… the threat of impending doom keeps the voters subservient. Instead of pointing out the corruption, we equivocate. I’m not a nihilist or a pessimist and most certainly do not want Trump to win. But refusing to acknowledge the blatant corruption puts us right where we started.
Props to you for actually reading the article. If anyone else who replied to the comment had done the same, there wouldn’t be as many “what-about-isms”
What’s mind boggling about it? Bernie Sanders wasn’t a prophet. He ran on a platform and we believed in his candidacy. Just because he bent over for Hillary doesn’t mean that suddenly now she’s a great candidate. If he had to bite down on the rag, I don’t fault him for that. But asking people to get on board “just this once” every election is just a carrot on the stick. It’s always “but this one is SUPER important, set yourself aside and pick the lesser evil, eventually we can get what we want.” There is no “eventually” and there never will be as long as you and others like you show that you’re willing to throw your ideals away because of this season’s boogieman
You’re missing a lot of context. You’re examining the contents of the effect, without looking at the cause.
The DNC rigged the primaries before any ballots were cast. They conspired against Bernie Sanders to have Hillary as the nominee and worked to sabotage Bernie’s run for presidency. Talking about exit poll statistics doesn’t really mean much. The corruption was already well underway.
https://www.politico.com/magazine/story/2017/11/02/clinton-brazile-hacks-2016-215774/
You know there’s elections before the primaries right? The Democratic party has shown that it will resort to all means of corruption to give you the “establishment” candidate. And people like you keep voting for the lesser of two evils. Let the Democrats lose more elections they shouldn’t lose, eventually they learn they need to uphold the values of democracy to win an election.
If the Democratic party wasn’t corrupt to the core, it would have been Bernie. After that it would have been Andrew Yang. You keep voting these Republicans in Democrat clothing, nothing ever gets solved. Every democrat in history since I was born has promised to do something about immigration, nothing ever gets done. Why? Because it serves their interests to have a variable workforce that they can underpay and demean.
People like you are why the Democratic party keeps forcing shit candidates down our throats. They count on obnoxious people like you to guilt others into voting for “the lesser of two evils”
Your experience may vary but I’m a network engineer who learned Python and I think learning regex and pandas is invaluable. Depends on what you want to build though. As far as learning resources, I’ve always liked w3schools, it’s free and to the point.
For books, python 101 by Michael Driscoll is very good. I wouldn’t spend money on courses. They can be pretty demotivating and expensive.
Undocumented is kind of a funny term, because the government basically says “we’re not giving you permission to legally acquire employment because you’re not supposed to be here, but if you DO find employment, pay taxes using this ITIN number(pseudo social)”
The argument isn’t as vague as it seems. The only way America is ever truly going to be great again is if we reduce military spending, strengthen education /social programs and tax the rich. It really is a war of the have and have nots, at the end of the day.
Agreed. I think we took self expression too far. Things like the Internet, hip hop, counter culture etc definitely changed how we express ourselves. I cringe at the idea of how I defended the use of words and phrases even as an adult, hiding behind defenses like “intent matters”. It wasn’t until I was in my late 20s that I started to think about how the things that I express might be harmful to others. Thankfully I don’t see many kids act like we acted. I even caution my son against the use of phrases that might be worded too strongly, such as something “being stupid”. If we can give our children a world to inherit, I think they can come closer than we’ve ever been to world peace.
Salvador Dalí: ‘Those who do not want to imitate anything, produce nothing.’
I wish I would have heard this quote much sooner… I usually like to flesh out my projects/ideas from the start and it feels unoriginal or boring when it’s too derivative of other work… But everything is derivative of something. Being afraid of being “unoriginal” should never stop you from creating, or at least trying. A lot of the time the “unoriginal” work pays great homage to the original work and really does transform the result to something new and vibrant
To give a simpler answer, not all profit is income. let’s say you own a small company and you earned 100k of profit in a year. If you want to take that 100k as income and pay yourself(the owner), you’re going to get taxed pretty high. But instead you could really use a new work truck, so you buy a company truck that goes as a business expense and pay yourself the remaining 50k.
Companies have a lot of options in ways to spend their earnings without it having be taxed as income.
It’s supposed to mean that enough outside pressure has mounted to force the kind of introspection where you reconsider everything you think you know or are. In a way, you are releasing your ‘self’ in exchange for becoming one with the larger picture.
So you might have someone that let’s say has a drinking problem… They think they are managing and are not cognizant of how their behavior or actions are impacting others. You have an intervention so that the person can learn the weight of the burdens he’s made other people shoulder, forcing introspection and a “come to Jesus moment”
This is very troubling.
Honestly, I’ll never understand how Christianity has become ingrained with right wing politics. Modern day conservative churches are at odds with everything that Christ taught and stood for.
Tipping is never going to go away, but I’d sure like it if they stopped promoting it on the POS.
Simple math, gotta cancel out the negative with your own negative and then affirm the positive
I’d believe that overhauls in this sense means that they have completely restructured/breathed new life to their campaign and thus gained favorability