There is a lot of ways. print("{0}, {1}".format(x, y)) print("{x}, {y}".format(x=x, y=y)) print("%s, %s" % (x, y)) print(f"{x}, {y}") => best and most readable! print(x + " " + y) => (might need to put it in str(x), str(y))
this are little tweaks of the language who seem to serve no purpose, they only make things difficult and complicated, lets create a system that does the same thing than the other system, but differently and harder to comprehand ! yea ! the Perk class !
Good video. You have one mistake in your code. At 3:20 you should have used "return orig_func(x,y)".
As always, well stated and well paced. Thank you!
That is because you are a noob who did not see the obvious mistake. You must be the tailor of his shirt.
thank you for share
but where is the result of 1+7?
He didn't print the result value in the principal function, so you don't see it
it's 8 bro
3:18 lul, it's 2024, and Python STILL can't into string interpolation that doesn't make you throw up?
idk, print(f"") works flawlessly, idk why he went for that useless shit
@@lilsos6892 meanwhile Ruby 20 years ago and to this day:
puts "String with #{any_expression}" # notice the lack of random magic numbers and letters
There is a lot of ways.
print("{0}, {1}".format(x, y))
print("{x}, {y}".format(x=x, y=y))
print("%s, %s" % (x, y))
print(f"{x}, {y}") => best and most readable!
print(x + " " + y) => (might need to put it in str(x), str(y))
There are many different ways that Python allows you to concatenate strings and printing. The beauty of Python is that it has variety.
You made a mistake dude. It must be the shirt.
My shirt is the decorator function haha!
this are little tweaks of the language who seem to serve no purpose, they only make things difficult and complicated, lets create a system that does the same thing than the other system, but differently and harder to comprehand ! yea ! the Perk class !