Python CLASSES in 50 Seconds! 🔥👨‍💻 #shorts

preview_player
Показать описание
Did you know this?

python tutorial,python tutorial for beginners,python,python programming tutorial,learn python,python programming,python course,python for beginners,python tutorials,tutorial,python full course,python basics,learn python programming,python tutorial 2021,python 3,python language,python from scratch,python programming language,python tutorial in hindi,python django tutorial,python malayalam tutorial,best python tutorial in malayalam
python classes,python,python class,python tutorial,python programming,python objects,classes in python,python classes and objects,classes,classes and objects in python,classes python,python 3 classes,python classes tutorial,python tutorial for beginners,python basics,python classes for beginners,python oop,python course,class,python classes and objects tutorial,python for beginners,python class tutorial,learn python,python 3
Рекомендации по теме
Комментарии
Автор

a = input("Name : ")
print("Hello", a, "!")

yusufozadanr
Автор

it's now 2024, don't use .format(<variable>)
write it like this: print(f"'Hello {<variable>}")
F-strings are a lot cleaner and easier to read

StarcraftOakley
Автор

print(f"Hello {self.name} !")

holia
Автор

name = input("Name? ")
print("Hello " + name)

gojoyeagerist
Автор

x = int(input("işlem yapacağınız ilk sayıyı seçin "))
y = int(input("işlem yapacağınız diğer sayıyı seçin "))

print("Toplama")
print(x + y)
print("Çıkarma")
print(x - y)
print("Çarpma")
print(x * y)
print("Bölme")
print(x / y)

CHESSBIRD
Автор

Please make audio also... It's difficult to know what is the question to get the solution

funwithlearning
Автор

encapsulation, polymorphism, inheritance? Oh, no! Print - yes!

bernardsoul
Автор

So basically print(" ") in a harder way

UsedObsidian
Автор

This actually a advance code so you can literally do like

print ("hello adam!")

This is just for a noobie style

And this is a intermediate

name = 'put anything you want'

print (name)

coding in python is kinda easy and hard

Tommpython
Автор

That was the easiest way to learn how python classes actually work.

Edit:
For the people who are saying that it's easier with print and input command, you don't understand.
The main point of this short video was to teach people about how classes work in python.

tushantbhardwaj
Автор

He is having patience me in that if a o/ p doesnt came i just skip and goes to watch reels for relaxation and time over mrng 6:00 to night 10:00

shrihaan
Автор

oh thanks now i kinda know how to do classes

hell-king
Автор

print("Hello, Adam") ---- small brain



name = Adam

print("Hello, " +str(name)) --- medium brain



this mind twisting code mega brain

basicarduinoprograming
Автор

Cant u also write print(f"Hello {self.name}!") ?
*Line 7*

mushfiqurrahman
Автор

x = str(input(Please enter your name:))
print("Hello"+ x+"!")
Easy and smart solution 😉

memegaming
Автор

Another way for format string : print(f"hello {self.name}!")

TAHADR-tyqv
Автор

All this code just to print hello Adam!
This is not a Python.
My friend write this : import this.
Python is a dynamic language programming. 😢

adelinobarbosa
Автор

Why this much when you can just do -

Name=input("your name - ", )
print("hello", Name) #or use f string
print(f"hello {Name}")

nitd
Автор

If you want the code to remember/print the name the user inputs, what i usually do is:

name = input("Hey, what's your name? ")
print("That's a cool name, hi %s" %name)

BloodScar
Автор

Class aren't you suppose to increment class variables of a person

moseczokatyme