Python

  • List Vs Tuples

    Data types are one of the most fundamental of the things of any programming language. After all, it is in these data types, that we do store the data, and what possibly is more important than data. It is depending on the data, that the data types do get decided. In this post of ours, Continue reading

  • Password Validations #Pythonic

    Password validations is something that is pretty common in most of all the applications that are built right? This time we are looking at some validations for password using Python codes. Below is the lambda function to test for the validity of password. password = lambda x : len(x) > 5 and len(x) < 10 Continue reading

  • Duplicates in Python #Pythonic

    Problem Statement – Given a word you need to check for the occurrence of an alphabet in the word. If the count of the alphabet is greater than 1, it has to be replaced with “)”, else it has to be replaced with “(“.  Let us see the sample answer to the above question – Continue reading

  • Finding Keywords in Python

    Understanding the following code – keyword – This is a library present in the Python module, which in stores all the python keywords for the current version of python. The library comes with two modules – iskeyword – This checks if the string entered is a keyword or not. If it is a keyword it Continue reading