It doesn’t have to be edgy, it just explains what happens. In db replication, a master holds the truth and slaves repeat it/follow orders. The US has a unique and relatively recent relationship with chattel slavery so people are more sensitive to it now. Doesn’t make it right or wrong, the words mean certain things that describe what the system does.
- 0 Posts
- 7 Comments
woop_woop@lemmy.worldto
Python@programming.dev•Confused about multiplying floating-point & integer values
2·2 years agoEh, degrees can be overrated. I don’t have one and it hasn’t hindered me at all. Ultimately, it depends what kind of work you want to get into and your drive to self learn, how quick you can pick things up, and adaptability. You got this.
woop_woop@lemmy.worldto
Python@programming.dev•Confused about multiplying floating-point & integer values
5·2 years agoThat’s fair, I was trying to be a bit vague since you’re learning and wanted to help point you to the solution. Went a little too vague with it 🙂
woop_woop@lemmy.worldto
Python@programming.dev•Confused about multiplying floating-point & integer values
3·2 years agoNo problem bud, good luck
woop_woop@lemmy.worldto
Python@programming.dev•Confused about multiplying floating-point & integer values
4·2 years agothe signature for the
inputfunction (that’s what it’s called instead of command) isdef input(__prompt: Any = ...) -> strwhich means it’s always going to return a string.
So it starts off as a string, then becomes whatever is typed in
there’s no real way for something to do that automatically without a much more robust setup.
this snippet proves that
test_int = input('enter integer:') print(type(test_int)) test_float = input('enter float:') print(type(test_float)) test_str = input('enter string:') print(type(test_str)) >> <class 'str'> >> <class 'str'> >> <class 'str'>it is the responsibility of your program to validate and do whatever you want with the result, and part of that can include casting it to a different type.
woop_woop@lemmy.worldto
Python@programming.dev•Confused about multiplying floating-point & integer values
12·2 years agoThe traceback should give you an idea of what’s going on, but you can test for yourself by checking the result of input:
test = input('enter number:') print(type(test))Another question to ask is “why did you cast ‘h’ as a float?” And what happens if you just do h + r?

I don’t think the image is trying to indicate professional seniority, it seems to me to try to represent seniority from an experience standpoint