Header Ads

Responsive Ads Here

Variables in Python

 

text = "This is Xtra Coding."
num = 15


text_me = "hello"  # cannot use special character (except _ )
print(text_me)

# user name = "Xtra Coding"  # cannot give space in variable name

first_user_name = "Xtra Coding"  #snake case writing

firstUserName = "Xtra Coding"  # Camel Case writing


text = "Hello"
print(text)


print = "xtra coding"
print(print)


# def = "hello"  #cannot not use reserved words
Powered by Blogger.