sorted by: new top controversial old
[-] woop_woop@lemmy.world 19 points 4 days ago

But the iceberg won..

[-] woop_woop@lemmy.world 2 points 2 weeks ago

Eh, 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.world 5 points 2 weeks ago

That'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.world 3 points 2 weeks ago

No problem bud, good luck

[-] woop_woop@lemmy.world 4 points 2 weeks ago* (last edited 2 weeks ago)

the signature for the input function (that's what it's called instead of command) is

def input(__prompt: Any = ...) -> str

which 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.world 12 points 2 weeks ago* (last edited 2 weeks ago)

The 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?

[-] woop_woop@lemmy.world 13 points 3 months ago

Nope, for cutting bone

https://en.m.wikipedia.org/wiki/Chainsaw

That article is pretty inaccurate overall... people have reliably lived beyond 40 for thousands of years

[-] woop_woop@lemmy.world 5 points 4 months ago

Bored toddler.

Slouched forward shoulders, weight on my heels, head back with a pained expression and small crying sounds.

[-] woop_woop@lemmy.world 7 points 4 months ago

I like to sit and take a moment for me. It's a nice moment of calm either before chaos or to release tension from the chaos. So I looks like nothing, but it's zen

[-] woop_woop@lemmy.world 15 points 4 months ago

Assume I can't draw the conclusions you want me to. Please explain it

[-] woop_woop@lemmy.world 10 points 4 months ago

Arguably any revolution comes from a critical mass of the population being unhappy..

view more: next ›

woop_woop

joined 6 months ago