Posts

Showing posts from August, 2018

MemberShip Operator in Python

Image
in and not are the membership operator in python It is used to check whether the value is present in a sequence i.e string, list, tuple, set and dictionary.

What is difference between Yield and return Keyword in Python

Image
Yield Keyword In Python : Return sends/return specific value back to its caller function whereas Yield can produce a sequence of values. we can use yield when we want to iterate over a sequence but don't want to store the entire sequence in the memory  Yield are used in python generator. A generator function is defined as a normal function but whenever it needs to generate a value,  yield is used instead of return. if any function contains a yield then it will automatically become a generator function 

Why Learn Python

The Main question is Why to Learn Python what are the Benefits of Learning than any other language. First You need to know What is Python  Python  is an Object-oriented Programming Language. Use for general high level and also general purpose programming. It's a powerful programming language which is used for different purposes and on the different platform Like Machine Learning, Web development, AI, Data analytics and many more. It has different libraries which makes python very powerful and easy to learn which also helps the programmer to do high-level programming like working on machine learning projects, data science. It is very easy to learn and its an open source programming language so there are lots of libraries in python which makes programming easy and efficient you can find this on this link  https://pypi.org/ . Here are some amazing things you can do with python : You can use it for web development, and its great to use python for web...