print ("Hello Python World!")
message = "Hello Python world!"
print(message)
message = "Hello python Crash Course world!"
print(message)
message = "xxxxxx"
_message = "xxxxxx"
greeting_message = "xxxxxx"
student_name = "xxq"
s_n = "xxq"
message = "Hello Python world!"
print(mesage)
student_name = "xxq"
print (student_name)
string = "This is a string."
print (string)
string = 'This is also a string.'
print (string)
string = 'I told my friend,"Python is my favorite language!"'
print (string)
string = "The language 'Python is named after Monty Python,not the snake.'"
print(string)
string = "One of Python's strengths is its diverse and supportive community."
print(string )
name = "ada lovelace"
print(name.title()) # .title() 首字母大写
print(name.upper()) # .upper() 所有字母大写
name1 = "ADA LOVELACE"
print(name1.lower()) # .lower() 所有字母小写
first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
print(full_name)
test = "Python"
print (test)
test = "\tPython"
print (test)
test = "Python"
print (test)
test = "\nPython"
print (test)
test = "Languages:\nPython\nC\nJavascript"
print (test)
test = "Languages:\n\tPython\n\tC\n\tJavascript"
print (test)
favorite_language = 'Python '
print (favorite_language.rstrip())
favorite_language = ' Python'
print (favorite_language.lstrip())
favorite_language = ' Python '
print (favorite_language.strip())
message = 'One of Python's strengths is its diverse community'
print (message)
message = "One of Python's strengths is its diverse community"
print (message)
print (2 + 3)
print (3- 2)
print (2 * 3)
print (3 / 2)
print (4 / 2)
print (3 ** 2)
print (3 ** 3)
print (10 ** 6)
print (2 + 3 * 4)
print ((2 + 3) * 4)
print (0.1 + 0.1)
print (0.2 + 0.2)
print (2 * 0.1)
print (2 * 0.2)
print (0.2 + 0.2)
print (4 / 2)
print (1 + 2.0)
print (2 * 3.0)
print (3.0 ** 2)
universe_age = 14_000_000_000
print (universe_age)
x = 0
y = 1
z = 2
print (x)
print (y)
print (z)
x,y,z = 0,1,2
print (x)
print (y)
print (z)
MAX_CONNECTIONS = 5000
MAX_CONNECTIONS = 4000
print(MAX_CONNECTIONS)
import this