String Concatenation | Python Tutorial
Вставка
- Опубліковано 25 сер 2024
- How to concatenate strings in Python, including the + operator, the += operator, the join() method, the format() method, the string formatting operator %, and formatted string literals (f-strings). Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!
Very nice video, specifically was triying to solve the error with triying to print str with int, solved it very fast thanks.
Very good explanation bro, similar to JS string concatenation
Thank you, I'm glad you enjoyed it! :-) And yes it's a bit like JavaScript's string concatenation.
Instead of str(speed) can I use int(speed)? Example: print(int(speed) + int(units)) Would that work too?
Great question! :-) No, because the + operator will concatenate strings but not int values.
@@PortfolioCourses gotcha thank you
KUDOS Bro