Posts

Showing posts from November, 2023

Practise from from 41 :

Image
 41 : Excercise : Password Checker username = input ( "Enter your Usernname: " ) password = input ( "Enter your Password: " ) passwdencrpy = '*' * 10 print ( f " { username } , your password: { passwdencrpy } length is { len ( password ) } long" ) Result sre, your password: ********** length is 9 long  ============= Excercise : Password Checker Slightly Modified the code. username = input ( "Enter your Usernname: " ) password = input ( "Enter your Password: " ) cap_password = int ( len ( password )) passwdencrpy = '*' * cap_password print ( f " { username } , your password: { passwdencrpy } length is { cap_password } long characters long" )  Result  Sreejith Balakrishnan, your password: ********** length is 10 long characters long   42: List List is an ordered sequence of object it can be of any type.  List we denote with square brackets All the above are valid list values. In Python , li...

Expression Vs Statement

Image
Expression Vs Statement   IQ/5 is called the expression. Statement is a line of code. Augmented Assignment Operator

Datatypes

Image
 -- Data Types Fundamental Datatypes -- Classes : Custom types I can create a class and name it whatever I want  -- Specialized Datatypes Modules : You can think of them as extensions that you can add to the language They are not build into python, they are specialized packages . They are modules that we can use from libraries. you can create your own datatype such as superCars which you can create for yourself  Specialized Datatypes  They are special packages and modules from python that you can use from libraries. You can think of it as extensions that you can add to the language. This is something that we can talk about when we talk later in our course.  None datatype Int and Float Data Type : Round :