Today I have learned basics in python
Basics in python
What is Python basics?
- Python Basics is for people who want to learn Python programming—whether you are a complete beginner to programming, or a developer with experience in another language. What Are Python Raw Strings? What's the Zen of Python? Begin your Python journey with these beginner-friendly tutorials. Learn fundamental Python concepts to kickstart your career.
What should I learn in Python?
- Fundamentals Syntax – introduce you to the basic Python programming syntax. Variables – explain to you what variables are and how to create concise and meaningful variables. Strings – learn about string data and some basic string operations. Numbers – introduce to you the commonly-used number types including integers and floating-point numbers.
- a= 45b= 60c= 70d= "My age {1}.{1} is {0} "print(d.format(a,b,c))
Output:
my age 60.60 is 45
try:
print("hiii")
except:
print("error")
else:
print("good morning")
Output:
hiii good morning
a= input("enter your name") print(" Name is " +a)Output:
enter your name Name is dhisha
Comments
Post a Comment