[what] Basic Data Operations In Python

  


Basic data processing in Pythons are:

  • Number processing
    • mathematics
    • statistics
    • probability 
  • Text processing
    • create
    • search
    • compare
    • replace
x = 5
y = 3

print(x + y)

print("********************")

x = 5
y = 3

print(x != y)

print("********************")

x = 5

print(x > 3 and x < 10)

print("********************")

x = ["apple", "banana"]
y = ["apple", "banana"]
z = x

print(x is not z)

print(x is not y)

print(x != y)

print("********************")

a = "Hello, World!"

print(a.replace("e", "a"))

print("********************")

Post a Comment

0 Comments