Bismillah
Bismillah
# if username != "umidjon18":
# print("Username not found:", username)
# else:
# password = input("Enter your password: ")
# if password != "mytg":
# print("Password is incorrect !!!")
# else:
# print("Hello Mr", "Umidjon")
###################################################################################
##########
# print("Hello, I'm a function which is responsible to print prime numbers in a
range")
# a_list = [1,2,3,4,5,6,7,8,9,10]
# for index, value in enumerate(a_list, start=5):
# print(index, value)
# from typing import List
# print(isPalindrome(any, 1221))
###################################################################################
##########
# romanNumbers = {
# "I": 1,
# "V": 5,
# "X": 10,
# "L": 50,
# "C": 100,
# "D": 500,
# "M": 1000,
# "IV": 4,
# "IX": 9,
# "XL": 40,
# "XC": 90,
# "CD": 400,
# "CM": 900,
# }
# print(romanToInt(any, "MCMXCIV"))
# Input: s = "MCMXCIV"
# Output: 1994
###################################################################################
##########
# print(isValid(any, "()[]{}"))
###################################################################################
##########
# from typing import List
# def fight():
# print("Go fighting")
# class HumanTwo:
# def __init__(self, name, country):
# self.name = name
# self.country = country
# def fight():
# print("Fighting implemented")
# print(isinstance(humanbeing, HumanTwo))
# class MonsterAncector:
# def attack(self):
# print(f"attack, damage: {self.damage}")
# class Monster(MonsterAncector):
# def __init__(self, health, damage):
# self.health = health
# self.damage = damage
# def __str__(self):
# return f"a monster with {self.health} hp"
# class OtherMonster(MonsterAncector):
# def __init__(self, health):
# self.health = health
# monster_instance = OtherMonster(100)
# monster_instance.attack()
# print(monster_instance)
class Person:
def __init__(self, name):
self._name = name
def _say_name(self):
print("His name is", self._name)
one = Person("Umidjon")
print(one._name)
one._say_name()