Malhar Lathkar

Malhar Lathkar

About

Malhar Lathkar has been teaching different programming technologies for last three decades. After completing M.Sc. Electronics, he started his career as Lecturer in Electronics. Fascinated by Computer languages and programming, he started his own software training and development centre in 1986. Thousands of undergraduate and PG students as well as professionals have been trained by him. His students are working with many of the leading IT companies across the world. He has always encouraged students to be entrepreneurs and many of them are having their own successful IT ventures. He is associated with TIEC (Technology Innovation Entrepreneurship Center) set up by SGGSIE&T Nanded. He has designed many software solutions with applications in Banking, Healthcare, automation etc. His teaching is deeply influenced by his experience in software development. Java, Python, PHP and database technologies are his areas of interest and expertise. Besides he is an avid sports enthusiast, a freelance columnist for a local Marathi daily and relishes Hindustani classical music.

24 Articles Published

Articles by Malhar Lathkar

Page 3 of 3

What is the best way to handle list empty exception in Python?

Malhar Lathkar
Malhar Lathkar
Updated on 19-Dec-2019 2K+ Views

List is an ordered sequence of elements. Individual element in list is accessed using index starting with 0 and goes up to length-1. If index goes beyond this range, IndexError exception is encountered.In following example, an infinite loop is used to pop one element at a time. As loop tries to go even after last element is popped, IndexError exception will be encountered. We trap it using try – except mechanism.a=[1,2,3] while True:   try:     b=a.pop()     print (b)   except (IndexError):     break

Read More

What's the difference between lists and tuples in Python?

Malhar Lathkar
Malhar Lathkar
Updated on 30-Jul-2019 687 Views

List and Tuple are called as sequence data types of Python. Objects of both types are comma separated collection of items not necessarily of same type. However, main difference between list and tuple is that list object is mutable whereas tuple object is immutable. Immutable object can not be modified once it is created in memory. Hence it is not possible to add, modify or remove item from tuple object. On the other hand these operations can be performed on a list.

Read More

What is the difference between the != and <> operators in Python?

Malhar Lathkar
Malhar Lathkar
Updated on 30-Jul-2019 333 Views

In Python 2.x, both != and operators are available to check if two operands are not equal. Both return true if operands are not equal and false if they are equal.In Python 3.x, operator has been deprecated.

Read More

How to exit from a Python if clause?

Malhar Lathkar
Malhar Lathkar
Updated on 30-Jul-2019 570 Views

It is not possible to exit from an if block of Python code. The break keyword does appear in if block but it has to inside a loop. It is however possible to exit from entire program from inside if block by sys.exit()

Read More
Showing 21–24 of 24 articles
« Prev 1 2 3 Next »
Advertisements