Skip to content
Sign upLog in
← Back to Community

python

Profile icon
HKin

python

Voters
Profile icon
geoffreyma
Profile icon
franek327
Profile icon
MrSckeleton
Profile icon
ClovisDev
Profile icon
ShaxodatQodirbe
Profile icon
Vcb5
Profile icon
FinlayDigby-Cla
Profile icon
MuhammadVito1
Profile icon
anuptripathy04
Profile icon
Airton-CaledCal
Comments
hotnewtop
Profile icon
IsroGaganyaan

Hello everyone i am new to python how to start it i m confused plz help me .

Profile icon
[deleted]

Learn Python somewhere.
If you want to start out big however you need to learn C/C++/C#/[email protected]

Profile icon
IsroGaganyaan

@LuaIsGudScript
no sir my scul teaching python but i amnt able to understand it :( therfore wanted to learn plz help

Profile icon
[deleted]
AVariable="Hello!" print(AVariable) if AVariable=="Hello!": print("Wow!") #Do you understand that?

@IsroGaganyaan

Profile icon
[deleted]

Also its spelled "school" not "scul"[email protected]

Profile icon
IsroGaganyaan

@LuaIsGudScript
yes u meant to say hello right? 👀

Profile icon
[deleted]
#Comments are made by putting a "#" behind them.

@IsroGaganyaan

Profile icon
[deleted]
#Variables are made by putting the variable name then an equal sign then the value of the variable, they are accessed by typing in their name. MyVariable=52 print(MyVariable) #You print something by typing in "print" then putting open and closed parentheses and putting what you want to print in them.

@IsroGaganyaan

Profile icon
IsroGaganyaan

@LuaIsGudScript
ik but i just want to learn looping i can do the dry run but not able to write the logic behind program :(

Profile icon
[deleted]

@IsroGaganyaan

#If statements are made by typing "if" and then the condition then a ":" then a new line and indent everything you need to do if that is true. MyVar="Hi!" if MyVar="Hi": print(MyVar) MyVar="Nope!" print(MyVar)
Profile icon
[deleted]

Ok.

#While loops are done by putting "while" then a space then the condition then a new line and indents to put what you want to do while it is true. Hello=True while Hello: print(Hello+" ,you are cool.")

@IsroGaganyaan

Profile icon
[deleted]
hello=525 print(53+23+32*hello/2)

@IsroGaganyaan

Profile icon
[deleted]
for variable in range(1,101): print(variable) #FOR LOOPS WITH RANGE!!!!!!!

@IsroGaganyaan

Profile icon
[deleted]

Reply to me if your [email protected]

Profile icon
IsroGaganyaan

@LuaIsGudScript
the only problem i have in iteration is printing patterns like
A
B C
D E F
G H I J
for eg

Profile icon
I-amam51

@IsroGaganyaan
I am not paid advertising. But there is a website (also mobile app) named sololearn. You can learn Python for beginners there. Stay Awesome!

Profile icon
Kanryren

hmm

Profile icon
IvannaVietrova

a=int(input('Enter the total number of sales'))