Followers

Latest techys

Part10- Python Fundamentals | Start from the Basics

 


If u fell any difficulty in watching the content, try to reduce the size of this page or rotate your portable device if you are using it





In the previous article, we learnt about Other Components of  a Python Program. Today we shall learn about Dynamic Typing & Simple Input and Output. So, let's start.

Dynamic Typing:

    Python supports dynamic typing which means the programmer can forcefully convert the datatype of a variable.

    For example: 
                          

Caution with Dynamic Typing:

    Although Python is comfortable with dynamic typing, the programmer is responsible for ensuring right datatypes for certain types of operations.

    For example:


Simple Input and Output:
        
    Program can be made user friendly when he/she enters a value of their own choice. This is possible in Python with the help of a built-in function called input().

       For example:
    


We shall learn how to set different datatypes with input function in the next article.

No comments