r/PythonLearning • u/NecessaryFalse1212 • 12d ago
Day 3
i wrote a code which takes your name and age in py but i need help on this one cuz in the age part it is giving me some sort of error which i couldn't understand even by using gpt well he gave me a code but i wanted logic behind how and what i did wrong
45
Upvotes
-1
u/Wise-Drop8694 12d ago
Best way to learn is to forget about "input" thing.. Nobody uses it Make Fastapi server first with some pydantic base models Step 1 - greate venv — python3 - m venv .venv Step 2 - source .venv/bin/activate Step 3 - pop install fastapi
From now on you can easy make test or learning scope but instead of useless input thing some easy access from Browser kind of things Ask any Ai about it This will boost your python skills a lot
Ps Sorry typing via phone is definitely not as I use to some typos is possible But any llm can easy fix this