Showing posts with label malayalam python. Show all posts
Showing posts with label malayalam python. Show all posts

Thursday, April 23, 2020

Traverse through 2 dimensional list


A list is a data structure that holds an ordered collection of items i.e. you can store a sequence of items in a list
Slicing the list and manipulating the list is easy in python. Since its a sequence is iterable, we can use for loop on list. "Sequence in Python, sequence is the generic term for an ordered set.Lists are the most versatile sequence type. The elements of a list can be any object, and lists are mutable - they can be changed. Elements can be reassigned or removed, and new elements can be inserted" python two dimensional list

Sunday, April 19, 2020

python function arguments


Python function arguments 

You might have seen *, ** (asterisks ) in functions definition -arguments in python. Don't confuse them with C pointers.They are actually totally different.

Below examples take you through  defaults ,keyed and VarArgs parameter passing in python.


Reference: https://python.swaroopch.com/functions.html






python function arguments Example 1

python function arguments Example 2

Python function arguments Example 3



Python arguments with tuple and dictionary

Friday, April 17, 2020

6 ways to run python


Python language interpreter

Python interpreter can be used many ways from command line.

Beginners guide: https://wiki.python.org/moin/BeginnersGuide

Developers guide: https://devguide.python.org/


  •  Call a Python interactive shell (REPL):
           python
  •   Execute script in a given Python file:
           python script.py
  • Execute script as part of an interactive shell:
          python -i script.py
  •  Execute a Python expression:
          python -c "expression"
  •  Run library module as a script (terminates option list):
          python -m module arguments
  •  Interactively debug a Python script:
         python -m pdb script.py

     

Thursday, March 19, 2020

Python Malayalam Book

I started long back to write Python programming helper book in Malayalam.  But unfortunately I got side tracked and haven't touch that for long time.

https://davnav.github.io/MalayalamPythonebook/first%20steps


Now again I am brushing it up .  Yesterday I moved that to github and converted to markdown files.

https://github.com/davnav/MalayalamPythonebook/

I can do lot of  md formatting now.

Hopefully I make some progress in coming days..

Looking for your support as well.