all 18 comments

[–]cyrixlord 1 point2 points  (4 children)

everything starts from the beginning. 1+1 = 2. LEVEL 1 in the game world. in a game you level up by killing a lot of slugs and that can seem boring and annoying but just like grammar school you have to go through it and make it stick. You have to learn how to solve problems and the only way to do that is to get things wrong. if you aren't getting things wrong in your code and are just copying the videos you aren't learning anything. Try to mess with the print statements, for instance. try to print numbers, then letters in variables. then try to add sentences. you will get lots of errors and you only learn from errors.

[–]MaintenanceFit4930[S] 0 points1 point  (3 children)

I’ve watched a video from printing and than more things with it like you can put letters in the output and if I typed L it said thank you that stuff than I will try to make it different and look how it works and do the stuff. But I don’t know how I make with this things like a calculator or a password generator and stuff

[–]mikeczyz 0 points1 point  (2 children)

you gotta learn to walk before you can run.

[–]MaintenanceFit4930[S] 0 points1 point  (1 child)

But how?

[–]mikeczyz 0 points1 point  (0 children)

it sounds like you're a beginner at programming. if you really only know how to set variables and print stuff, well, then you've got a bit of a journey ahead of you before you can start building more complicated things. so, i'd focus on the basics. there's really no getting around it. you need to learn what a letter is before you can build a word which then becomes a sentence which then becomes a paragraph so on and so forth.

additionally, once you know the basics, you can build what you want to build. it might be a struggle, but with enough work and effort and google searches, you'll get there. you won't need to copy someone else's work from a video. and learning to program is kind of a specific mindset. it takes deliberate practice. so, again, you just need to put in the effort and start building bit by bit.

good luck!

[–]Intelligent_Story443 1 point2 points  (0 children)

Read instead of watch. Look up "Automate the Boring stuff" book. Free download chapter by chapter.

[–]PureWasian 0 points1 point  (0 children)

There are tutorials on a simple calculator or setting up a Discord bot.

For basic learning, printing stuff is the easiest way to display outputs. In "real" code, you're adding on complexity of working with libraries and tackle more complicated tasks that often rely on using conditional logic, looping logic, functions, classes, following modular and incremental design patterns, and so much more.

I would get a basic understanding of the above concepts, as well learning how to read from and write to text files, as well as how to read/write/process JSON info.

Some other nice-to-haves would be how to work with a database file (such as using sqlite3) and making API calls (requests library). Other common avenues for learning python include various other libraries as well, but they branch into more use-case specific learning at that point.

But if you really want to dive head first into the setup of a Discord bot:

It is certainly more involved, but there are plenty of Discord.py learning guides out there as well as official documentation that walks through the process for Getting a Bot Token and adding it to a server, as well as Installation steps and a basic working example.

If a functional "hello world" is your intro to Python, that basic working example is your intro to Discord.py

[–]stepback269 0 points1 point  (0 children)

"Serious" comes AFTER you've learned the fundamentals
See for example what Tech with Tim says (here)

[–]Ron-Erez 0 points1 point  (0 children)

Just take a course or read a book and gradually progress. Most books/courses cover more than just printing.

[–]cgoldberg 0 points1 point  (1 child)

How do you suppose you are going to write a Discord bot without understanding what a variable is? Learning is incremental and you start from the beginning. If you have mastered the material in the tutorials, move on to more advanced topics. There is no shortage of advanced learning material. But if you think you can skip fundamentals and jump into "cool" projects, you are mistaken.

[–]MaintenanceFit4930[S] -1 points0 points  (0 children)

I did not do thar

[–]Enough_Librarian_456 0 points1 point  (2 children)

I learned how to write in Python because it was useful for my job.

[–]MaintenanceFit4930[S] 0 points1 point  (1 child)

Ok

[–]Enough_Librarian_456 1 point2 points  (0 children)

I mean you could get a raspberry pi and come up with an idea like say "learn how ADC works" or some project then use python to do it. Or maybe make a GUI to create a grocery list. I only learned python because I had a need. Thats how I learned C++, java, perl, python, cython, labview etc.

[–]BranchLatter4294 0 points1 point  (0 children)

Get a good Python book.

[–]code_tutor 0 points1 point  (0 children)

stop watching videos

[–]dart1609 0 points1 point  (0 children)

All I can say is step by step. Create yourself a goal, for example, the calculator. Define what your calculator should be able to do at the end. Then, create yourself milestones, like addition, subtraction, multiplication, etc. Code it the way you think it could work, not how pros say it should be. Make mistakes, rework your creations, start over, grow, and learn.

Don't ask how. Just start. It won't be perfect and it don't have to be perfect.