this post was submitted on 04 Sep 2024
7 points (100.0% liked)
Python
6366 readers
5 users here now
Welcome to the Python community on the programming.dev Lemmy instance!
π Events
Past
November 2023
- PyCon Ireland 2023, 11-12th
- PyData Tel Aviv 2023 14th
October 2023
- PyConES Canarias 2023, 6-8th
- DjangoCon US 2023, 16-20th (!django π¬)
July 2023
- PyDelhi Meetup, 2nd
- PyCon Israel, 4-5th
- DFW Pythoneers, 6th
- Django Girls Abraka, 6-7th
- SciPy 2023 10-16th, Austin
- IndyPy, 11th
- Leipzig Python User Group, 11th
- Austin Python, 12th
- EuroPython 2023, 17-23rd
- Austin Python: Evening of Coding, 18th
- PyHEP.dev 2023 - "Python in HEP" Developer's Workshop, 25th
August 2023
- PyLadies Dublin, 15th
- EuroSciPy 2023, 14-18th
September 2023
- PyData Amsterdam, 14-16th
- PyCon UK, 22nd - 25th
π Python project:
- Python
- Documentation
- News & Blog
- Python Planet blog aggregator
π Python Community:
- #python IRC for general questions
- #python-dev IRC for CPython developers
- PySlackers Slack channel
- Python Discord server
- Python Weekly newsletters
- Mailing lists
- Forum
β¨ Python Ecosystem:
π Fediverse
Communities
- #python on Mastodon
- c/django on programming.dev
- c/pythorhead on lemmy.dbzer0.com
Projects
- PythΓΆrhead: a Python library for interacting with Lemmy
- Plemmy: a Python package for accessing the Lemmy API
- pylemmy pylemmy enables simple access to Lemmy's API with Python
- mastodon.py, a Python wrapper for the Mastodon API
Feeds
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The traceback should give you an idea of what's going on, but you can test for yourself by checking the result of input:
Another question to ask is "why did you cast 'h' as a float?" And what happens if you just do h + r?
Honestly, I had a bunch of little confusions. I thought the
input()
function was only a string until the user typed in a value when prompted, and then it became either an integer value or a floating-point value depending on what you typed in.Thanks to Labna@lemmy.world and your other response, I understand that it is always a string regardless until you convert it after the fact.
Also, I meant to type an asterisk instead of a plus sign when typing over my code snippet into my post. Fixed now.
Also, to answer your last question, if I do
h+r
orh*r
, I get "5010" for the former (which makes sense) and the standard "can't multiply sequence by non-int of type 'str'", which also makes sense to me now that I understand the above point.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 π
I really appreciate the effort! My dream is to eventually learn enough from free online courses to then take a certification test and then maybe I can get a job even though I don't have a degree. I fear my lack of a degree will doom that goal before I ever get a chance, but I have to take that chance, I feel. Also, I fucking hate customer service. Lol.
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.
I don't mind self-learning. Hell, if I'm interested in the subject matter, I usually find myself experimenting and researching.
I'm all about that "wait, I wonder if..." mindset. π
I've been hiring programmers recently. A year or two experience wins out over a degree almost any time. I don't know if there are any developers (or even website administrators) at you current job, but if there are I'd see you if you can start by helping them out, maybe helping out when they're on leave or picking up little jobs and then you'll get your foot in the door in no time at all.
Actually the last dev I hired had no experience at all, I just really liked him, and he's turned out brilliantly.
I work as a cashier at a dead-end retail store in a town of 5000. (Seriously, the closest reasonably large city is like 30 minutes away.) So I don't think there's much of an opportunity at my current workplace. Haha.
But you still make an excellent point and it sounds like a good starting-off point. Thank you!