Created
April 10, 2022 16:36
-
-
Save Professor-Sathish/ba1b061fb74f6a6cffd66671b1241c35 to your computer and use it in GitHub Desktop.
Exploring ADTs via Python Snippets - ADTs and Datatypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Physical view of Data type | |
n1=10 | |
print(f"value of n1 {n1}") | |
#Logical view of Data type | |
print(f"type of n1 {type(n1)}") | |
#ADTs - Only logical view | |
import random | |
#we dont know the code of random module | |
print(random.randint(12,45)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment