DEV Community

Vairavan
Vairavan

Posted on

Day 1 Python Learning 🐍

Today I Started learning python programming language.
I learned some basic concepts about python and terminal commands

Python is a Interpreter and dynamically typed programming language.
Python automatically Understands the datatype.
Interpreter means a code is Executed Line by Line..

EX :

x=10
x="HI"

OutPut:
HI
Enter fullscreen mode Exit fullscreen mode

Terminal Commands

I Learn How to use Terminal Cmd :

  • " ls " -used to show file and folders
  • " cd " -used to change folder
  • " cd .. " -used to one step back file are folder
  • " --version " -used to check the versions (ex) python --version output :3.14.3 *up arrrow -used to access previous commands

Conditional Statements

Conditional Statements used to Make Decisions in Programming

EX :

a=10
b=5
if a>b:
    print(a)
else:
    print(b)

OutPut:
a
Enter fullscreen mode Exit fullscreen mode

if the condition is true, python executes the if
otherwise, it executes the else block.

I Learn One Important of Boolean Datatype in Python

I used to js in boolean datatype true and false.
Python also true, false but used to first letter must be Capital.

EX :

  • true, false ❌
  • True, False ✅

Today was my first day learning Python.
I learned terminal basics, conditional statements, How to use Boolean Datatype in Python, and What is dynamic type.
I am excited to learn more about Python and programming.

Top comments (0)