Hi is this correct ? class animal(): def sound(self,sound="Animal makes a sound"): print(sound) class dog(animal): pass class bird(animal): pass dog1=dog() dog1.sound("Dog Barks") bird1=bird() bird1.sound("Birds Sing")
input_str = "errormakesclever" output_str = "" # Initialize a counter count = 1 # Iterate through each character in the input string for char in input_str: # Add the character and its count to the output string output_str += char + str(count) # Increment the count count += 1 print(output_str)
His voice thooo 🔥🔥..... Damnnnnnn
Class bird(animal):
def sound(self):
Print("birds sing")
B1=bird()
B1.sound
Class bird() mattum potalum work aagum bro
U r very young,but u r explanation is very excellent .
why method overloading is not possible in python?
avaiable tha nanba
Anna... Hacker Rank problems solve pandradhuku adhula kekura question topic um solli kunga na..... (Python )
Polymorphism interesting gatha bro iruku and use fullavu irukunu nanaikura 😊 and constructor mari destructor na ennanu epdi use pannanunu sollunga bro
without inheriting the Animal class still Dig class prints "dog barks"?
yes print pannum bro
Next web development start panunga
Yes
Bro innu ethana topic kitta iruku and intha course complete pannita clarificate tharuvigala bro sollunga please
Hi is this correct ?
class animal():
def sound(self,sound="Animal makes a sound"):
print(sound)
class dog(animal):
pass
class bird(animal):
pass
dog1=dog()
dog1.sound("Dog Barks")
bird1=bird()
bird1.sound("Birds Sing")
its crt bro
class Animal:
def sound(self):
print("Animal Makes Sound...")
class Dog(Animal):
def sound(self):
print("Dog barks...")
class Bird(Animal):
def sound(self):
print("Birds Sing...")
b1 = bird()
b1.sound()
Bro task completed
Bro for loop la
Input = errormakesclever
Output = E1R2R3O4R5M6A7K8E9S10C11L12E13V14E15R
INDHA OUTPUT KEDAIKA CODE EPDI BRO IRUKANUM ..SOLUNGA BRO PLEASE
input_str = "errormakesclever"
output_str = ""
# Initialize a counter
count = 1
# Iterate through each character in the input string
for char in input_str:
# Add the character and its count to the output string
output_str += char + str(count)
# Increment the count
count += 1
print(output_str)
output = ''
for i in range(1, 16):
if i % 2 == 0:
output += str(i)
else:
output += 'R'
output = 'E' + output
print(output)
Bro ithu mudicha udanae next language poduvingala......