[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Learning Python, have read to about page 80 In Automate the boring

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 3

File: 1434418570281.png (143KB, 672x434px) Image search: [Google]
1434418570281.png
143KB, 672x434px
Learning Python, have read to about page 80 In Automate the boring stuff and I feel like I know nothing. I open a new file to try to fuck around and I have no clue what to do. It's like I need to still be spoonfed. How do i overcome this?
>>
Bump, I don't wanna quit bros.
>>
>>55730241
You need a project. Programming can't be learn from books. The building blocks can. If you have a goal or something you want to achieve, you combine these basic concepts in a way which allows you to reach your solution.
>>
Are you taking notes? You should. Just note down some simple things so you can remind yourself on how stuff works. I take notes all the time and it really helped me learning how to program.

By the way, when you open a file you get an object. Those objects have read and write methods. You can dick around using those.
>>
>>55730241
>Learning Python
Well, there's your problem
>>
>>55730241
You were supposed to take notes
You were supposed to self-experiment
>>
At this stage of learning you will never get started on a substantial idea/project and already have all the knowledge you need to implement it. There will always be multiple steps where you think:

>I know that I want the program to do X but I don't know how to do that yet

And at that point you need to Google it. The hard part isn't finding out what code will allow you to do X, but rather making sure you understand the code that allows you to do X. You can quite easily just copy and paste code to achieve your goals but obviously you need to understand things in order that you can implement them later yourself.

It can feel frustrating having to Google things but no one person can be a specialist at everything. It's pointless to build your own (inefficient) solution to every problem when 100 Pajeets on stackexchange will have already come up with more efficient / elegant solutions that are out there waiting for you.
>>
>>55730241
>>55730241
Just do shit that interests you. Automate the Boring Stuff can actually be a pretty useful intro to Python, but there's no point to it (to yourself) if you can't apply it IRL.

Try building a 4chan webscraper with Beautiful Soup or something that allows the user to define what boards they want and explore 4chan from the terminal like a CLI. That sounds pretty cool to me, and it'll probably be more interesting than opening a file (to you).
>>
>>55730241
> I'm a beginner
> How do I stop being a beginner
>>
>>55730241
Try some of the sample http://adventofcode.com/ problems
>>
>>55730241
What's so confusing about python? What do you not understand?
>>
File: 42463749.jpg (58KB, 500x372px) Image search: [Google]
42463749.jpg
58KB, 500x372px
>>55731462
How do programmers memorize the syntax? I can name like ten or twenty commands off the top of my head with barely any understanding of what they do. Or I have a small amount of comprehension ( Like the "while" statement, however looping with It confuses me) but still feel like I have no clue what im doing.
>>
>>55731669
Maybe go back to women's studies and leave the programming to the men sweet cheeks
>>
>>55731669
Memory or draw a cheatsheet.

That memory comes from being so in touch with the language that you know it's standard libraries by heart.

Youre literally asking how to be good without having worked enough to be good.
>>
>>55731669
>How do programmers memorize the syntax?

By using it you adhd-riddled baboon, would you also expect native-tier fluency after a couple of weeks of studying a foreign language?
>>
File: 1431367349889.png (302KB, 1920x1080px) Image search: [Google]
1431367349889.png
302KB, 1920x1080px
>>55730241
One of the best ways to get started in my experience is to write a small text-rpg
Set up some goals like:
a minimum of 3 rooms
one puzzle per room
a way to restart the game when you completed it
And when you done that, do it again but with harders goals.

The nice thing with this is it sound really simple BUT for a beginner it isnt!
For instance, how do you manage inventory? How do you create a way for items to interact?
How do you navigate the different rooms? etc
You will have to find out how to do these things on your own and thats how you learn programing!
Also, try to do some of the easy things on the picture
>>
>>55730241
OP you're a massive nigger. Like the NIGGIEST. If you met any real software dev, they don't really care about language besides preference, it's just a tool to get the job done. Learning how to use the tool is completely motivated by the task. While many tools could get the job done, usually there are one or two that stand out. Sometimes it worth it to take the time to get used to the new most efficient tool, but other times it's too expensive (see resources, time, actually money) to implement when you can by with a less efficient but familiar tool. At this point, stop caring about being a language fanboy and start learning actual practices and techniques that you can implement across the board.

Nigger.
>>
>>55730241
You need to apply your knowledge that you have gained.
Basically think of something you want a program to do and try to find ways to make that possible.
Use google or stackoverflow if you need to but don't copy/paste code but try to understand what the code does and write it yourself.
>>
>>55731805
Not OP, but I have a question about the first challenge.

Set up a dictionary of said info, randomly select one and voila. I can't think of how much more complicated it can be. Is it meant to be an entry-level challenge?
Thread posts: 19
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.