• 2 Posts
  • 73 Comments
Joined 1 year ago
cake
Cake day: July 13th, 2023

help-circle



  • 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?’))





  • 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.



  • 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.




  • 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.




  • 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”