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 Interpreted and dynamically typed programming language.
Python automatically Understands the datatype.
Interpreter means a code is Executed Line by Line.

EX :

x=10
x="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.

  • true, false ❌
  • True, False βœ… **

Top comments (0)