39 and counting….

As I turned 39 today, I had one of my best birthdays ever. DBC cake, down by 6 kgs and wearing a knee length gown for first time and going out to the chatter, patter and love of the family. Absolutely fantastic. Long drive, too. Oh yes, how did I forget?

Am I older? Yes.

Am I wiser? Oh yes.

How? There are few changes I made in this year.

1. Stay more in body and less in mind. I finally, eventually fixed my overthinking problem by acting on every damn thing my mind got fixated upon in endless loops. So, now I do one of the three things : Do it immediately, or fix a time or record in Google keep with a timeframe attached to it or ignore and forget. This has worked incredibly well and majority of my mindspace is now free for important things.

2. Realized can’t be everything, everywhere and all the time. I need rest and solid rest. This is one of the few genuine requirements I do have in my life. More than anything else. Learnt to prioritise sleep.

3. Consistency, dedication and patience will give results. Not jumping from one fancy thing to another. Dedicated an hour to workout, ate clean and slept well. Most important, kept my mind empty. Result. Lost 6 kgs in 9 weeks. Pretty happy. Still long way to go, but the results are enough to keep me going.

4. Patience is a virtue. One can never have enough. Ofcourse it works against you when you don’t speak up. But on a daily basis, the more you have the better. I learnt the art of dealing one day at a time. Doing things that are needed. And continue. This is what not having maid and cook for a while can do to you. And a pretty good consequence, I must say.

5. Stay true to yourself but don’t get killed. I do not wanna elaborate on a public platform, but stuff did drive me crazy on personal front quite few times. Eventually, it was hard work to understand who I was, and what my value system is. That made it easy to make decisions and then find out workarounds to make things work. Pretty pretty pleased with myself for that.

It’s just in my blood to make plans. Here I go for next year –

Workout 5 days a week

Sleep 7 hours a day

Talk to loved ones atleast thrice a week

Read and watch atleast thrice a week

Pursue a hobby or pick up a sport

Start freelancing and earn decent money for my splurges

Next year I turn 40 and we shall revisit this list to see what happened and what didn’t.

Have a great day and keep rocking!!

MVL – Most Valuable Lesson

Heya folks!  How is the lockdown treating you all?  I know we are in unlock 4.0 but everyone I know is still in March and April – still shut inside their homes.  As I did the dishes, sweeped and mopped, cooked and cleaned the bathrooms, packed and packed and packed the books and toys –  I dealt with a fundamental problem I’ve ha all my life.

The problem of never ending work.  All piled up.

Familiar?   I’ve been a victim of this all my life. My BP shoots up thinking of all the pending work I’m yet to do. Now, I learnt this –





So, that’s it.   Here is how it goes  –

  1. The moment I have to do something in my head – I do it straight away if I can.  Otherwise, I fix a timeslot for it.  Record in head for smaller things and on google keep for larger and important stuff.
  2.  When the time comes, I just DO IT.  Absolutely brainlessly.
  3.  I tell myself :  Everything ends, even Life.  STOP CRIBBING and START DOING. This will end, I just need to start.
  4. And when it ends , I smile and enjoy the little warmness in my heart of appreciating myself of a job well done.
  5. For something more difficult, I tell myself :  Anything you repeatedly do, it has to get easier. That’s how life works. Except being stupid and expecting peace of mind.  I do use this everyday on myself,  as a beginner  in pushups.  It doesn’t matter how long it takes – but I will keep doing it until I can.

Lockdown has helped me finally tackle one of the MOST Difficult and Important traits in my life. I am forever grateful.  What’s lockdown done to you?!

Have a great day and keep rocking!!


Attitude to Weight Loss!

So, today I see a photo in my whatsapp status.  That’s a woman from my apartment lady, posing for a pretty photo after losing 10 kgs.  My initial reaction to that was – “Looks great, but how did she lose it?!” .  I was pretty surprised at my reaction and the ideas that formed in my head took shape as I explained it to Hubby later on.

Here is the deal.  Weight loss can happen in various ways.  You can go fad diet, do excessive cardio and lose muscle, you can fall sick and you can lose with consistent weight training and calorie tracking.  There are some pretty standard universal rules when it comes to fat loss.   Consistent calorie deficit,  balancing macros and weight training are the golden rules. Ofcourse there is enough sleep, managing stress levels well in the mix as well. Add to this,  day in and day out consistency to the goals till you reach them.

There is no magic bullet.  As I lost 6 kgs so far with this process, it has surely impacted my mental health as well. I feel lighter, and I also stopped comparing myself with anybody else with regard to weight loss or any endeavor whatsoever.Someone lost weight? Good for them.  However, it’s good in long run if they have lost it while adhering to golden rules.  Who are we really competing against? No one.  I also had a feeling of non accomplishment when looking at achievers. However, over time of losing this weight I understood that priorities in life are really important. We become what we prioritize.  I prioritized workout for an hour first thing in my day and boy, did it help!

We do not know the other person’s lifestyle, problems, goals and aspirations.  A simple photo can never be a benchmark of a person’s achievement.  Every human being shares the tip of iceberg, only the closest knows that’s really going on inside.

Here is a beautiful summary of what I felt –

WhatsApp Image 2020-08-04 at 12.08.28 AM

The ideal agenda of any living person to live as long as they can, fit and healthy.  To be able to do their work without support and be useful to themselves and to people around them till they are around.  Fit body and fit mind are the basic fundamentals – and this is a long haul.  No quick fixes, No meeting goals and done, dusted.  Lose the weight, and keep it that way 🙂

Have a great day and keep rocking!

UmaMaheshwara Ugrarupasya : Movie Review

I managed to catch up with UmaMaheshwara Ugrarupasya movie on netflix. Took me two days to finish but done. So, how did I like the movie?


A happy go-lucky guy gets beaten up for trying to resolve a tussle. Does he avenge and how does he avenge his humiliation forms the wafer thin story line. However, there are too many subplots running and each one pretty well deserved screen space. Actors are brilliant, and the movie oozes the nativity I crave to watch in telugu movies. Pretty girls, close up shots and the innumerable expressions of satyadev coupled with the wisdom of the old man – makes the movie a really good one to watch. How he discovers the emotions in the photography and how a boy and girl cannot be misunderstood all the time form some of the good concepts to watch.

Brilliant movie, a full time fan of Venkatesh Maha, the director. Do surely catch it when you get time.

Rating – 10/10

Have a good day and keep  rocking!!



Today I ended the 4 year stint of meenakshi as a cook. Why does she deserve a special place in my blog? I choked with emotion when I told her. I can feel she did too.  For me, she and her was the kitchen. We ran it very efficiently, just like how I wanted. More variety, more quantities and on time. Everytime.  She was super quick, diligent and loyal. She cooked tasty food and always accomodated to our whims and fancies of few parathas with chilli, few without chilli. Its the coronavirus and the loss of my job which forced me to send her away. We even had a weight loss competition running among us when she was forced to stay at home due to fever.  Its really not the work I have to do extra because the cook won’t come.  Its the camaraderie, and the bonding I shared with her over the years.  One of the few people who really got me, every time I told her something or not.

All good things must come to an end.

The only silver lining in not having a cook is that kids will be exposed to kitchen more often than right now. I can get them to participate in lot of things I do, and I can pick up few skills along the way too.

Have a good day and keep rocking!!


5 Lessons along my fitness journey

I started doing few lifestyle changes since May 26th and I have reduced 3 kg as of today. Not a lot of reduction in inches though.

Wanted to quickly record some lessons I’ve learnt along the way.

1. Portion control and calorie tracking. I’ve used healthifyme to track my calories every single day. There was one day where I ate a little above what I’m supposed to eat. But. I pretty much stuck with it. I used fittr to calculate my. BMR and TDEE. As a South indian, I love my carbs and I went ahead with moderate carb profile. With TEE at 1788 and BMR at 1388, I decided to be around 1250 everyday. Add the oil and other stuff, it would then reach BMR for sure. I then brought a weighing machine to measure every single food that went into my mouth. This helped me to eat whatever I want, while fitting into my macros. I made friends with fiber a lot. A lot of lifestyle changes. But this is the most important reason by far.

2. Exercise. No, walks don’t work unless you are walking atleast 5 to 6 km/hr. I peaked at 4 km/hr. It doesn’t work. I started body weights and eventually started weights after a month. My strength has improved a lot. My shoulder stand practice is also going pretty well.

3. Sleep. Cannot emphasize enough. I now allow myself to sleep enough.

4. Rest and recovery. While I am really particular about my morning structured workout, the rest of the day I will have two walks planned out. I do try my best to go. However the days I don’t, I just let it be. I even try to get afternoon power nap for 30 ?mins.

5. Increasing NEAT. Stands for Non Exercise Activity Thermogenesis. Means. Keep active throughout the day. I do laundry, kids chores and pack the house. Now thanks to COVID, Im the cook and the maid. This really really helps.

So, long way to go!! Will write more once I lose another 3 kgs.

Have a good day and keep rocking!!

Book Review : Elon Musk[Book #13]



I picked up this book, after I read an article about a tweet by Elon Musk. He opined, Tesla’s stocks are overrated. Is he arrogant or stupid? I asked myself.  Read this as Book #13, I obsessed over it, reading late till 3 am till I finished the book. And then I followed it up with a loooong article about Why Elon is Elon on waitbutwhy.

The book is detailed. It covers almost everything about Elon –  his childhood, early days, Canada, Justin, and then the string of companies – Zip2, X.com,  SpaceX,Tesla and SolarCity.  While emphasizing on his trademark style of doing business, it does not give credit to Musk where it isn’t due. Very true to the information gathered, SpaceX, Tesla are built by a bunch of supremely talented people, led by Musk.  Not lazing around like a typical investor, he got his hands dirty and got the work done.  At a point in the book – where Musk runs of money to run all his companies is the exact time where you start developing huge respect for the character he is.  His eccentric personality, wanting to put himself on stage and his crazy work hours –  one side of the coin. Having crystal clear goals,  razor sharp memory, excellent academia and the rarest of qualities to risk it all, and infinite patience to see through the audacious of projects is the other. He usually shows one side of coin, quite what press laps up.  As I read, it occurred to me that his biggest strength is to sit through shit and do everything in his power to clear up.  In the process, he wasn’t afraid to spat, fire the loyalists and take credit for other people’s work and prioritize work over family.  The book does justice to demonstrate the entire gamut of musk’s life and career, upto the release.

Read it, and enjoy his roller coaster ride in 3D.

Rating –  9/10

The reason I gave 9 is, I had a small dissatisfaction that I still couldn’t get a handle on what makes Musk what he is. A summary of sorts. So, I turned to Tim’s  waitbutwhy to read this article.  And after that, the book made a lot more sense to me, and I conclude it like this –  Musk is Musk, because of his positives and also his negative traits.  As the article says, Musk knew what he wanted, and revised his reality as he went along. And, he dealt with every problem as scientific, instead of dogma.  At the same time, it does not detail into his absolutely-non-empathy-avatar.  Pretty impossible to replicate.  While I dont aspire to be Musk because I can’t,  there is one definite thing I learnt.  Nothing great can be achieved by giving up.

Have a great day ahead!

Happy Mothers Day!

It was fun watching a lot of pics of people I know, with their mothers. We all share love and hate with our own mothers. Atleast I do. All my good is her. All my bad. I dont really know.

As I saw saanvi trying to add pushups to her routine, I explained her by drawing a straight line and two stick figures. By running fast and falling flat, the stick figure pretty much remains at the start of the line. And a few times that happens, he loses the motivation to go forward. Instead, he just decides to move one leg a day – he makes progress. No matter what. She nodded her head, and ran away to play with her sister.

Sometimes, kids give you the solutions you need by having the exact problems you have. And your solution is offered to them. All that then we need to do is to listen to yourself. As I had discovered yesterday night painfully, after walking 10 km everyday. On top of my existing covid routine( you’all know rite? ;). While I was contemplating stopping walking – I had my answer as soon aa Saanvi dashed off to play.

45 mins walk. 15 mins enjoy the weather, stupid.

That’s it. So here goes my revised walk.

Happy Mother’s day to All!! May we all apply the solutions we give our kids. Simply cos thats our absolute best!! Have a good day and keep rocking!!

#Notes : The Python Mega Course(Udemy)

Hello Guys!  This is to record my notes from the Udemy Course here.

  • The Python interactive shell (shown with >>>) is a quick way to execute Python code to see how it works.
  • Python programs are written in .py files.
  • Integers are for representing whole numbers:
  1. rank = 10
  2. eggs = 12
  3. people = 3
  • Floats represent continuous values:
  1. temperature = 10.2
  2. rainfall = 5.98
  3. elevation = 1031.88
  • Strings represent any text:
  1. message = “Welcome to our online shop!”
  2. name = “John”
  3. serial = “R001991981SW”
  • Lists represent arrays of values that may change during the course of the program:
  1. members = [“Sim Soony”, “Marry Roundknee”, “Jack Corridor”]
  2. pixel_values = [252, 251, 251, 253, 250, 248, 247]
  • Dictionaries represent pairs of keys and values:
  1. phone_numbers = {“John Smith”: “+37682929928”, “Marry Simpons”: “+423998200919”}
  2. volcano_elevations = {“Glacier Peak”: 3213.9, “Rainer”: 4392.1}
  • Keys of a dictionary can be extracted with:
  1. phone_numbers.keys()
  • Values of a dictionary can be extracted with:
  1. phone_numbers.values()
  • Tuples represent arrays of values that are not to be changed during the course of the program:
  1. vowels = (‘a’, ‘e’, ‘i’, ‘o’, ‘u’)
  2. one_digits = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
  • To find out what attributes a type has:
  1. dir(str)
  2. dir(list)
  3. dir(dict)
  • To find out what Python builtin functions there are:
  1. dir(__builtins__)
  • Documentation for a Python command can be found with:
  1. help(str)
  2. help(str.replace)
  3. help(dict.values)
  • Lists, strings, and tuples have a positive index system:
  1. [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. 0 1 2 3 4 5 6
  • And a negative index system:
  1. [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. 7 6 5 4 3 2 1
  • In a list, the 2nd3rd, and 4th items can be accessed with:
  1. days = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. days[1:4]
  3. Output: [‘Tue’, ‘Wed’, ‘Thu’]
  • First three items of a list:
  1. days = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. days[:3]
  3. Output:[‘Mon’, ‘Tue’, ‘Wed’]
  • Last three items of a list:
  1. days = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. days[-3:]
  3. Output: [‘Fri’, ‘Sat’, ‘Sun’]
  • Everything but the last:
  1. days = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. days[:-1]
  3. Output:[‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fri’, ‘Sat’]
  • Everything but the last two:
  1. days = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”, “Sun”]
  2. days[:-2]
  3. Output:[‘Mon’, ‘Tue’, ‘Wed’, ‘Thu’, ‘Fri’]
  • A single in a dictionary can be accessed using its key:
  1. phone_numbers = {“John Smith”:“+37682929928”,“Marry Simpons”:“+423998200919”}
  2. phone_numbers[“Marry Simpsons”]
  3. Output:‘+423998200919’
  • Define a function:
  1. def cube_volume(a):
  2. return a * a * a
  • Write a conditional block:
  1. message = “hello there”
  2. if “hello” in message:
  3. print(“hi”)
  4. else:
  5. print(“I don’t understand”)
  • Write a conditional block of multiple conditions:
  1. message = “hello there”
  2. if “hello” in message:
  3. print(“hi”)
  4. elif “hi” in message:
  5. print(“hi”)
  6. elif “hey” in message:
  7. print(“hi”)
  8. else:
  9. print(“I don’t understand”)
  • Use the and operator to check if both conditions are True at the same time:
  1. x = 1
  2. y = 1
  3. if x == 1 and y==1:
  4. print(“Yes”)
  5. else:
  6. print(“No”)

Output is Yes since both x and y are 1.

  • Use the or operator to check if at least one condition is True:
  1. x = 1
  2. y = 2
  3. if x == 1 or y==2:
  4. print(“Yes”)
  5. else:
  6. print(“No”)

Output is Yes since x is 1.

  • Check if a value is of a certain type with:
  1. isinstance(“abc”, str)
  2. isinstance([1, 2, 3], list)


  1. type(“abc”) == str
  2. type([1, 2, 3]) == lst
  • A Python program can get user input via the input function:
  • The input function halts the execution of the program and gets text input from the user:
  1. name = input(“Enter your name: “)
  • The input function converts any input to a string, but you can convert it back to int or float:
  1. experience_months = input(“Enter your experience in months: “)
  2. experience_years = int(experience_months) / 12
  • You can format strings with (works both on Python 2 and 3):
  1. name = “Sim”
  2. experience_years = 1.5
  3. print(“Hi %s, you have %s years of experience.” % (name, experience_years))

Output: Hi Sim, you have 1.5 years of experience.

  • You can also format strings with (Python 3 only):
  1. name = “Sim”
  2. experience_years = 1.5

Output: Hi Sim, you have 1.5 years of experience.



  • For loops are useful for executing a command over a large number of items.
  • You can create a for loop like so:
  1. for letter in ‘abc’:
  2. print(letter.upper())



  • The name after for (e.g. letter) is just a variable name
  • You can loop over dictionary keys:
  1. phone_numbers = {“John Smith”:“+37682929928”,“Marry Simpons”:“+423998200919”}
  2. for value in phone_numbers.keys():
  3. print(value)


John Smith
Marry Simpsons

  • You can loop over dictionary values:
  1. phone_numbers = {“John Smith”:“+37682929928”,“Marry Simpons”:“+423998200919”}
  2. for value in phone_numbers.values():
  3. print(value)



  • You can loop over dictionary items:
    1. phone_numbers = {“John Smith”:“+37682929928”,“Marry Simpons”:“+423998200919”}
    2. for key, value in phone_numbers.items():
    3. print(key, value)


    ('John Smith', '+37682929928')

    ('Marry Simpons', '+423998200919')

  • While loops will run as long as a condition is true:
    1. while datetime.datetime.now() < datetime.datetime(2090, 8, 20, 19, 30, 20):
    2. print(“It’s not yet 19:30:20 of 2090.8.20”)

    The loop above will print out the string inside print() over and over again until the 20th of August, 2090.

  • A list comprehension is an expression that creates a list by iterating over another container.
  • basic list comprehension:
    1. [i*2 for i in [1, 5, 10]]

    Output: [2, 10, 20]

  • List comprehension with if condition:
    1. [i*2 for i in [1, 2, 10] if i>0]

    Output: [2, 20]

  • List comprehension with an if and else condition:
    1. [i*2 if i>0 else 0 for i in [1, 2, 10]]

    Output: [2, 0, 20]

  • Functions can have more than one parameter:
  1. def volume(a, b, c):
  2. return* b * c
  • Functions can have default parameters (e.g. coefficient):
  1. def converter(feet, coefficient = 3.2808):
  2. meters = feet / coefficient
  3. return meters
  5. print(converter(10))

Output: 3.0480370641306997

Arguments can be passed as non-keyword (positional) arguments (e.g. a) or keyword arguments (e.g. b=2 and c=10):

  1. def volume(a, b, c):
  2. return a * b * c
  4. print(volume(1, b=2, c=10))
  • An *args parameter allows the  function to be called with an arbitrary number of non-keyword arguments:
  1. def find_max(*args):
  2. return max(args)
  3. print(find_max(3, 99, 1001, 2, 8))

Output: 1001

  • An **kwargs parameter allows the function to be called with an arbitrary number of keyword arguments:
  1. def find_winner(**kwargs):
  2. return max(kwargs, key = kwargs.get)
  4. print(find_winner(Andy = 17, Marry = 19, Sim = 45, Kae = 34))

Output: Sim

  • Here’s a summary of function elements:
  • You can read an existing file with Python:
  1. with open(“file.txt”) as file:
  2. content = file.read()
  • You can create a new file with Python and write some text on it:
  1. with open(“file.txt”, “w”) as file:
  2. content = file.write(“Sample text”)
  • You can append text to an existing file without overwriting it:
  1. with open(“file.txt”, “a”) as file:
  2. content = file.write(“More sample text”)
  • You can both append and read a file with:
  1. with open(“file.txt”, “a+”) as file:
  2. content = file.write(“Even more sample text”)
  3. file.seek(0)
  4. content = file.read()
  • Builtin objects are all objects that are written inside the Python interpreter in C language.
  • Builtin modules contain builtins objects.
  • Some builtin objects are not immediately available in the global namespace. They are parts of a builtin module. To use those objects the module needs to be imported first. E.g.:
    1. import time
    2. time.sleep(5)
  • A list of all builtin modules can be printed out with:
    1. import sys
    2. sys.builtin_module_names
  • Standard libraries is a jargon that includes both builtin modules written in C and also modules written in Python.
  • Standard libraries written in Python reside in the Python installation directory as .py files. You can find their directory path with sys.prefix.
  • Packages are a collection of .py modules.
  • Third-party libraries are packages or modules written by third-party persons (not the Python core development team).
  • Third-party libraries can be installed from the terminal/command line:Windows:pip install pandasMac and Linux:pip3 install pandas

Fixing errors in Python

Two types of errors –  Syntax and Exceptions.

  • Interacting with Databases
  • The 5 basic steps of database interaction –
    • Connect to a database
    • Create a cursor
    • Execute SQL / Database statements
    • Commit ( using connection variable)
    • Close a cursor





More notes –

  • Integer, Floats : No quotes
  • String :  Single or double quotes
  • type(var x) :  To understand the type of variable x
  • list_name =  [ var1,  var2,  var3 ]
  • We can create a list of numbers automatically using a range. For example:  list(range(1,10)).  This will give [1,2,3,4,5,6,7,8,9,10]
  • dir(datatype) : All possible operations on a data type
  • help(datatype.attribute) :  Syntax and description of how the function works OR the property detail.
  • Methods are part of the data type. Functions are independent function that takes  parameters and performs certain operations.
  • dir(__builtins__) : To get a list of all the builtin functions in python
  • Dictionary = { var1 : var2,  var3 : var4,  var5: var6 }
  • Difference between Dictionary & List are braces. Lists are values, dictionary are key-value pairs.
  • dict_var.keys()  gives a list of all the keys.
  • dict_var.values()  gives a list of all the values.
  • tuples are immutable lists.  Syntax :  tuple_var =  ( var1,  var2,  var3 )
  • You can create a dictionary that has tuples/ lists as one of the variables.
  • Use “clear” command to clear  the command line.
  • Use “python”  to go to Python from the command line
  • Use exit() to go to command line from Python
  • Important functions of LIST data type :  append(), remove()
  • Accessing an element from LIST :   list_name[index].
  • Accessing a portion of a LIST : list_name[start_index :  end_index]
  • Accessing  an element of LIST using negative indexing :
    • for last element :  list_name[-1]
    • for first element :  list_name[-5] for 5 element list
  • Accessing a slice of LIST using negative indexing :  list_name[-4:-2] to get 1st to 3rd elements in 4 element list.
  • Lists and Strings operate in exactly the same way to access elements & slices
  • When indexing a list, it’s taken a number before mentioned. e.g.  list[:-1] gives all except the last one.
  • The way to access values in dictionary is via the keys.
  • creating a function :  def keyword.
  • Syntax:  def function_name(optional argument list):   (4 lines indent, and then code on next line)
  • Common pitfall when  creating function : Come back on indent once function is over. Until then, Python considers you are within the function. Any code written after that, wont be treated separately.
  • “None” is an builtin object in Python which means NOTHING.
  • All the input that comes from the function input() is always a STRING. It must be typecast into whatever input we expect to be entered.
  • message = f”Hola {name}!!”   This is how a single string formatting is done.
  • The curly braces can be empty, and can have an array beside it for parameters.
  • e.g. print(“Hi {}, you have {} years of experience”.format(name, experience_years))
  • for and while loops are fairly easy, follow same rules:  end with : and 4 space indent.
  • List Comprehension is a way to create a List in one line without using FOR loop.
  • List comprehension :  IF ELSE comes before FOR when creating with conditional.
  • Keyword arguments:  def foo(a=4,b=5).
  • Positional arguments:   def delta(4,5)
  • Default arguments:  def  onemorefoo(a, b=5)
  • Non default arguments ALWAYS come before default arguments in function definition
  • *args :   To denote arbritrary number of NON KEYWORD parameters to a function
  • **kwargs : To denote arbritrary number of KEYWORD parameters to a function
  • Non-default and non-keyword args always come before keyword and default.
  • import <modulename>  and use it as first thing in the code.
  • use dir() and help() as usual to know more about imported modules.
  • “pip install”  to import 3rd party libraries.
  • “C:\Users\User_Name\AppData\Local\Programs\Python\Python38-32\Lib\site-packages” :  Default path for 3rd party libraries installed using PIP INSTALL command.
  • https://docs.python.org/3/library/index.html :  Online location for finding all the python standard libraries.
  • import mysql.connector -> To interact with all mysql databases
  • import difflib -> To perform effective string operations
  • pip install jupyter -> to install jupyter, python interpreter.
  • import pandas – > To perform data analysis
  • Pandas notes –
    • Two important data types – DataFrame,  Series.
    • Read csv & txt ->   pandas.read_csv(“filename”, sep = “whatever we want”)
    • Read json ->  pandas.read_json(“filename”)
    • Read xls ->  pandas.read_excel(“filename”)