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 does 'in' operator do in Python?

Malhar Lathkar
Malhar Lathkar
Updated on 26-Feb-2020 689 Views

In Python, in and not in operators are called membership operators. Their purpose is to check if an object is a member of a certain sequence object like string, list, or tuple. The in operator returns true if object is present in sequence, false if not found>>> 'p' in 'Tutorialspoint' True >>> 'c' in 'Tutorialspoint' False >>> 10 in range(0,5) False

Read More

How to convert an object x to a string representation in Python?

Malhar Lathkar
Malhar Lathkar
Updated on 24-Feb-2020 307 Views

Most commonly used str() function from Python library returns a string representation of object.>>> no=100 >>> str(no) '100' >>> L1=[1,2,3,4] >>> str(L1) '[1, 2, 3, 4]' >>> d={'a': 1, 'b': 2, 'c': 3, 'd': 4} >>> str(d) "{'a': 1, 'b': 2, 'c': 3, 'd': 4}"However, repr() returns a default and unambiguous representation of the object, where as str() gives an informal representation that may be readable but may not be always unambiguous.>>> str(d) "{'a': 1, 'b': 2, 'c': 3, 'd': 4}" >>> repr(d) "{'a': 1, 'b': 2, 'c': 3, 'd': 4}" >>> repr(L1) '[1, 2, 3, 4]' >>> repr(no) '100'

Read More

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

Malhar Lathkar
Malhar Lathkar
Updated on 30-Jul-2019 337 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 571 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