Skip to content

Instantly share code, notes, and snippets.

@Professor-Sathish
Created April 10, 2022 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Professor-Sathish/ba1b061fb74f6a6cffd66671b1241c35 to your computer and use it in GitHub Desktop.
Save Professor-Sathish/ba1b061fb74f6a6cffd66671b1241c35 to your computer and use it in GitHub Desktop.
Exploring ADTs via Python Snippets - ADTs and Datatypes
#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