In Today's Video Let us learn Some more terms in python and create a quiz... So to create a quiz we need the following terms we need are as below and I have explained these commands in this video and also came up with a simple quiz program. [1] ' input() ' [2] ' print() ' [3] ' if [3] ' else: ' [4] ' elif ' [5] ' lower() ' Some useful books to learn Python - Python Crash Course, 2Nd Edition: A Hands-On, Project-Based Introduction To Programming - https://amzn.to/3h16xZx Python: The Complete Reference by McGraw Hill Education - https://amzn.to/3BHMBTk Python: 3 books in 1 : Python basics for Beginners + Python Automation Techniques And Web Scraping + Python For Data Science And Machine Learning - https://amzn.to/3kTVbaW Disclaimer: If uploaded Content (images, Videos, Songs, etc) that's yours. if you have any problem with this just contact us directly before doing anything. contact me through Email (explorewithnaman@gmail.com) Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use Only. We have given the necessary credit on video or description for all the used media. Please note that this video is not a paid promotion. Videographer only for sharing purposes. Follow my social media platforms GitHub: http://www.github.com/namanuriti YouTube: http://www.youtube.com/namanuriti Twitter: http://www.twitter.com/namanuriti Facebook: http://www.facebook.com/namanuriti For Any Queries, please mail - explorewithnaman@gmail.com And do visit my blog https://www.naman.me
Experiences, travel, Views and thoughts, current affairs, technology, education, career guidance
Monday, 6 September 2021
Python coding tutorial for Beginners | Learn programming | python Introduction | How to | Part 1 | YouTube Video | NamanUriti
#LearnCoding #PythonBasics #Pythonforbeginners #namanuriti
--------------Video Chapters--------------
0:00 Intro
0:45 Download Python
1:22 Download PyCharm
2:49 Testing the code editor given by python...
5:52 Enrolling on PyCharm
Hi Friends, during this new lockdowns I became interested in Programming. As you know I have done a demo class with Whitehat Junior, I started from scratch and I found This Programming language ' Python ' So this is the best and easiest Language now.
Watch this tutorial to learn basics of Python Programming...
If you want to read all these please check below:
MOTO :-
print()
variables - __ = ----
lists - _ = ["_", "_"]
input()
f_strings
int and float
1. print()
What does a printer do? It give a printout. What is a Printout? It is an output!
So print() command gives the output given inside the parentheses "( )".
example,
print("Hello World")
_the output will be_
Hello World
2. Variables
Variables are compressing a huge piece of code to a mini name.
We give our name as Name and equal to "Naman"
and now print the name like this
example,
Name = "Naman"
print(Name)
_the output will be_
Naman
3. Lists
In Variables we can only give one value but in list we could give many.
We give everything like Variables but in the value we give the square brackets "[ ]" and then strings " " " or ' ' " our name or value and after the strings keep a comma " , " and our strings name or value and continue comma, strings, value, continue.
example,
Name = ["Tom", "Dick", "Harry"]
print(Name)
_the output will be_
['Tom', 'Dick', 'Harry']
4.input
Do you want to make a quiz with python? Yes we could but we need Python to recognize our answer? we input to recognize our input. we give the input and parentheses. In that we can give our text. In strings let us ask their name and for neatness let us give space or a colon and then space as a question. but now python cannot not do anything now. yes! we bring it to a variable. so we give our variable name as "name" and then keep input and values after the equal to and now let us print the variable.
example,
name = input("What is your name: ")
print(name)
_the output will be_
What is your name: Naman
Naman
5. f_strings
Now we want our Name to be printed in a sentence. So we give everything of our input and then give our print option. and then give small ' f ' and after that give strings and we now write Hi and give the Curly Brackets "{ }" and in that give your name variable. and the you will get your output.
example,
name = input("What is your name: ")
print(f"Hi {name}")
_the output will be_
What is your name: Naman
Hi Naman
or
we have another way
We can type everything normally but no need the f strings. after that we give our Hi in strings and keep a comma an then type name. print it. It will be the same
example
name = input("What is your name: ")
print("Hi", name )
_the output will be_
What is your name: Naman
Hi Naman
6. int and float
int is the short form of integer in python. so if you have a value in strings we can change it to a number value. suppose you want to add two values in strings you can change the value to an integer value. so, first let us give our variable name as num1 and keep int or float and keep parentheses and start typing input in the parentheses and type you could type like "your first number: " and then another with the variable name num2 like float and then parentheses and in it let us type input and in the parentheses we can give "your second number: " and then print in the parentheses num1 plus num2.
example,
num1 = int(input("Your first number: "))
num2 = float(input("Your second number: "))
print(num1 + num2)
_the output will be_
Your first number: 1
Your second number: 2
3
Thank you all
Some useful books to learn Python -
Python Crash Course, 2Nd Edition: A Hands-On, Project-Based Introduction To Programming - https://amzn.to/3h16xZx
Python: The Complete Reference by McGraw Hill Education - https://amzn.to/3BHMBTk
Python: 3 books in 1 : Python basics for Beginners + Python Automation Techniques And Web Scraping + Python For Data Science And Machine Learning - https://amzn.to/3kTVbaW
Links:
Python Download
https://www.python.org/
PyCharm Download
https://www.jetbrains.com/pycharm/dow...
Follow my social media platforms
YouTube: http://www.youtube.com/namanuriti
Twitter: http://www.twitter.com/namanuriti
Facebook: http://www.facebook.com/namanuriti
For Any Queries, please mail - explorewithnaman@gmail.com
And do visit my blog
https://www.naman.me
Project day in my School Spartan International school and my speech on Asian palm civet - YouTube Video - Naman Uriti
Project day in my school Sparton International school Chennai. I have given a speech on Asian palm civet. Please comment below your thoughts. Don’t forget to subscribe and share my video
Subscribe to:
Posts (Atom)