Wednesday, March 30, 2022

Day -5 Python Datatypes

 Python Data types

1. Number

    a. Integer (10, 2, 29, -20 )

    b. Float (1.9, 9.902, 15.2)

    c. Complex (2.0 + 2.3j)


2. Sequence

    1. String ("hello yunus sir")

    2. List ( ["yunus" , 877, 125]) - use Square 

    3. Tuple (("yunus" , 877, 125)) - use Parentheses


3.Boolean
4. Set ({"james",4,5})- no dublicate entry
5.Dictionary ({1:'yunus',2:'Digital'})


No comments:

Post a Comment