Variables and Concatenation in Python (Python Part 3)

  • 00:00 Intro
  • 09:00 w3schools.com
  • 10:48 Python Data Types
  • 14:43 Creating, Setting and Finding Data Type of Variables
  • 27:33 Text Concatenation and Variable Casting
  • 30:38 Final Thoughts

concat.py

message = 'hello'

name = 'bob'

age = 36

print((message) + (name) + 'Im happy youre here')

print((message),(name),'Im happy youre here')

print(f'{message} {name} Im happy youre here')

print(f'{message} {name} I\'m "happy" you\'re here')

print(f'{message} {name} I\'m happy you\'re here')

#age = str(age)
#print((message) + (name) + 'you are' + (age) )

Be the first to comment

Leave a Reply