Day 1 of Learning Python from Udemy
Today in Python I learnt from Print *to Generating a *Folks Name Generateor
So it all started from writing simple code which everyone knows
print("Hello World")
but theirs a twist you can't add space **between print
and ("Hello World")
and also the ("") is known as **Strings
Next comes the { \n
} which continues code in second line
Also for merging use " + " itconnects a words or sentence
Using the len(@sohmkaviskar) inside this len you can add any text and output
will the characters it contains
Ex: sohmkaviskar
12
Mostly the Hard to come up with understanding is the
Variable : It use to name a code which can be in strings, print, input etc.Also it can be use has tag
Ex:
Here the Word before the equal is string has it next used in 2nd line
Username=input("What is your name?")
Length= len(Username)
print(Length)
There's Question for you:
glass1 = "milk"
glass2 = "juice"
Thank You.
You can't replace the glass with each other like
`glass1---->glass2
glass2="milk"
glass1="juice"`
This is Incorrect
Top comments (0)