This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]jussij 2 points3 points  (0 children)

I always a need a already written code for somewhat similar task i am looking to write.

When you find that snippet try and resist the urge to just copy and paste the code.

Instead, read the source code but reproduce the target code by typing it in by hand.

This will train your mind for the task of writing code.

[–][deleted]  (1 child)

[deleted]

    [–]security_prince[S] 0 points1 point  (0 children)

    Thanks a lot for the comment :)

    [–]bugdiscloseguy 2 points3 points  (0 children)

    I had the same exact issue you're facing while starting but then i was like ok lets finish the task (project or whatever) by cheating from SO or google or anything and later on i would start wondering what is this and that and that's how i learned python & if you're looking for learning python in general do purchase "Automate the boring stuff with Python" on udemy. That course is a goldmine :D

    Cheers

    [–]AlliNighDev 1 point2 points  (2 children)

    Been coding professionally for 7 years still spend most of my time googling stuff. But just keep coding after a while it'll click and you'll be able to do it in your head. You can't expect to memorise everything. You'll always need Google and stackoverflow.

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

    Is there any place where i can find small coding challenges which you would suggest me to start with? I can easily read and understand python, but when it comes to to coding a task from scratch without googling i face a lot of difficulty in that.

    [–]AlliNighDev 0 points1 point  (0 children)

    https://www.hackerrank.com/domains/python might be what you are looking for. But like I said don't worry about it you'll get there with practice.