Python Classroom Series – 24/Jul/2020

Fun with Python Interactive Shell

  • After installing python, launch default terminal (Powershell/Terminal) Preview
  • Type python and hit Return (Enter Key), to see the python interactive shell. & type import this Preview
  • To come out of python interactive shell type exit()
  • Lets play with two built-in functions of python
    • type(): This function will tell data type
    • id(): Returns identity of object. same identity can be thought as same memory location

Fun activities

  • Lets remember
    • a number Preview
    • a text Preview
  • When we are assigning variable values to other variables both will be pointing out to same memory location Preview
  • Now lets change one variable value Preview
  • In python the basic data types will be immutable, but we need to find out about complex data types.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin