ganesh

hello dai
mail@pastecode.io avatar
unknown
abap
2 years ago
1.8 kB
1
Indexable
Never
# for x in range(10):
#     print(x+x)

# for number in range(5):
#     print(f"The code has run for {number} time")

# for a in range(-4,15):
#     print(a)

# for a in range(0,105, 5):
#     print(a)

# status = False
# for number in range(1,4):
#     print(f"attempt{number}")
#     if status:
#         print("success")
#         break
#     else:
#         print('Failed')

# for x in range(3):
#     for y in range(6):
#         print(f"point({x},{y})")

from asyncio.windows_events import CONNECT_PIPE_MAX_DELAY
from zipfile import ZIP_DEFLATED


# for x in range(1):
#     for y in range(2):
#         for z in range(3):
#             print(f"Point ({x}, {y}, {z})")

# for char in "daiict":
#     print(char)

# print(type(range(12)))

# for something in ["cat", "bat", "badminton", 'laptop']:
#     print(something)
# temp =40
# while temp >=20:
#     print(f"it is a good day to go out when the temperatue is {temp}")
#     temp = temp -5;

# num = 100
# while num>1:
#     print(num)
#     num-=1

# def book():
#     print("Thriller")
# book()

# def sum():
#     for number in range(4,34,4):
#         print(number)

# sum()

# def airth_oper(x,y):
#     print(f"{x} * {y} = {x * y}")
#     print(f"{x}/ {y} = {x / y}")
#     print(f"{x} + {y} = {x + y}")
#     print(f"")
# airth_oper(5,6)

# def legal_age(name, age, allowed_age):
#     if age>= allowed_age:
#         print(f"{name} is allowed to drive.")
#     else:
#         print(f"{name} is not allowed to drive.")
# legal_age("sagar", 23, 12)

def facebook(name, status):
    return f"{name} is {status}"

user1 = facebook("sagar", "offline")
user2 = facebook("dipen", "online")
print(user1)
print(user2)