Python Basics
My Question:
Why should I learn Python? Are there any advantages to learning Python over other languages?
My Answer:
Python is a great language to learn, whether it’s your first time programming or not, for several reasons:
- Python reads like plain English! This is something I can especially appreciate with a side-by-side. Take a look and, without worrying about what these code bits actually do, think about which is harder to read:
// Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
# Python
print “Hello, World!”
- It’s one of the most popular programming languages with a massive community. This means help is readily available when you’re stuck!
- It’s used in many fields and industries, like Web development, machine learning and AI, and data science, just to name a few. So once you learn the fundamentals, you can grow into the role of your choice!
- So many Steem apps run off of python.
I already run a couple of bots python and javascript, but I want to jump in and be able to use the Steem API to try to create some apps of my own.
These are all the lessons (basic lessons) for Python Syntax
First LESSON
This lesson will introduce you to Python, a general-purpose, object-oriented interpreted language you can use for countless standalone projects or scripting applications.
Exercises
- Hello World!
- Print Statements
- Strings
- Handling Errors
- Variables
- Arithmetic
- Updating Variables
- Comments
- Numbers
- Two Types of Division
- Multi-line Strings
- Booleans
- ValueError
- Review
Posted from my blog with SteemPress : https://chronocrypto.io/python-basics/
Basics of Python 3 are simple, but the further you go into the harder it gets. You showed Python 2 example, Python 3 is the future only.