Skip to content

amitrajpurkar/playwithpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwithpy

experimenting with python

steps to follow for practising python like a kata

These steps will help us to start from Zero

step 1 -- download git

this is the version control tool... its a must have for any developer; and for the beginers this will give a good mechanism to connect with already written good codebases that you can use as a starting point here is the download page for Windows operating system = https://git-scm.com/download/win for other operating system options.. use https://git-scm.com/download

step 2 -- install git

follow all default options and install git on your local machine once you finish installing, it is a good idea to reboot your machine and try out this tool from windows run command type "gitbash" and let it open the terminal window you can type "git --version" and see the output

step 3 -- download pyCharm community edition

this is an opensource tool (IDE) and a good one for Python.. its from IntelliJ Idea page link -- navigate down to see Community edition exe link install this tool with all its default options after install run pyCharm and create a new Project use the default main.py that it creates or add your new script files try out different python commands, functions and modules

step 4 -- organize your folders

it is a good idea to organize your folder structure-- it gives a good discipline as well will help for future references when you want to try out the same experiments after a period of time one example is C:/workspaces/<sample 01>

step 5 -- connect to a code repository

make use of the good code repositories from gitlab or similar areas here are few links

step 6 -- open & play with checked out code in pyCharm

  • just like we say read, read, read...
  • there is another saying as well practise, practise, practise

step 7 -- important python references

make use of this valuable documentation from Python itself

summarization

So what we learn in this step are the building blocks to understand Python

  • data
    • data types
    • variables
    • data structures
      • Strings
      • List, Arrays
      • Set, tuples
      • dictionaries
  • instructions
    • commands
    • control structures
      • if-else; if-elif-else; for; while
    • sub-routines
  • built-in libraries

After this, the next level up, is organizing code. There is a difference between scripts which are simple commands; they get executed sequentially from top to bottom as encountered in the file. Whereas programming addresses solving complex problems; modularizing related commands in functions; housing related functions in Classes; organizing modules; having unit tests for all functions; compiling code organized in modules into a package that can be shipped and executed and so on.

Out of these, developing a "function that does only one action" is key skill. It also helps write testable code (TDD); break the code into nouns and verbs

About

experimenting with python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages