Python Variables And String - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript Python Variables And String - Web Development and Design | Tutorial for Java, PHP, HTML, Javascript

Breaking

Post Top Ad

Post Top Ad

Friday, November 30, 2018

Python Variables And String

Python Variables And String


Introduction

Variables are used to store values. A string is a series of character, surrounded by single or double quotes.

#Hello world
print("hello world")
#Hello world with a variable
msg = "Hello world"
print(msg)
#Concentration (combining strings)
first_name = 'albert'
last_name = 'einstein'
full_name =first_name + '' + last_name
print(full_name)

1 comment:

Post Top Ad