Python for Beginners – Learn Python in 1 Hour
This Python tutorial for beginners show how to get started with Python quickly. Learn to code in 1 hour! Watch this tutorial get started!
🔥 Want to master Python? Get my Python mastery course: http://bit.ly/35BLHHP
👍 Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF
📕 Get my FREE Python cheat sheet: http://bit.ly/2Gp80s6
Courses: https://codewithmosh.com
Twitter: https://twitter.com/moshhamedani
Facebook: https://www.facebook.com/programmingwithmosh/
Blog: http://programmingwithmosh.com
#Python, #MachineLearning, #WebDevelopment
📔 Python Exercises for Beginners: https://goo.gl/1XnQB1
⭐ My Favorite Python Books
– Python Crash Course: https://amzn.to/2GqMdjG
– Automate the Boring Stuff with Python: https://amzn.to/2N71d6S
– A Smarter Way to Learn Python: https://amzn.to/2UZa6lE
– Machine Learning for Absolute Beginners: https://amzn.to/2Gs0koL
– Hands-on Machine Learning with scikit-learn and TensorFlow: https://amzn.to/2IdUuJy
TABLE OF CONTENT
0:00:00 Introduction
0:00:30 What You Can Do With Python
0:01:15 Your First Python Program
0:05:30 Variables
0:09:08 Receiving Input
0:10:48 Type Conversion
0:18:49 Strings
0:23:41 Arithmetic Operators
0:25:59 Operator Precedence
0:27:11 Comparison Operators
0:28:52 Logical Operators
0:31:06 If Statements
0:36:16 Exercise
0:41:42 While Loops
0:45:11 Lists
0:48:47 List Methods
0:52:16 For Loops
0:54:54 The range() Function
0:57:43 Tuples
cisco academie
🔥 Want to master Python? Get my complete Python course: http://bit.ly/35BLHHP
👍 Subscribe for more Python tutorials like this: https://goo.gl/6PYaGF
Hello i need help the pthon download is showing 3.12 which is different from the on in the video ,after downloading its not showing the process you have .same for the pycharm
dude just taught me python in an hour
It expemsive course 🙁
Operator Precedence in there i used this word for calculation something like (10+3*2=16)
BODMAS is an acronym used in mathematics to help remember the order of operations when solving mathematical expressions. The full form of BODMAS is:
1. *B – Brackets:* Solve expressions inside brackets first.
2. *O – Orders:* Evaluate expressions involving powers or roots.
3. *D – Division:* Perform division from left to right.
4. *M – Multiplication:* Perform multiplication from left to right.
5. *A – Addition:* Perform addition from left to right.
6. *S – Subtraction:* Perform subtraction from left to right.
The BODMAS rule ensures that mathematical expressions are solved in a consistent and unambiguous manner, preventing confusion about which operation to perform first. Following this order of operations ensures that everyone arrives at the same result when evaluating a given mathematical expression.
26:10, "lot of people fail to answer" For real? I feel smart now lol
7:50, This is highly sus. Is what we are building here an ad for a slave being sold? Why does he have a name, age and a price?
You teach me better then my college professor.😂
nice explanation THANKS
helped a ton , many thanks!
I'm learning python for machine learning.
I am learning python for web development
FIRST ASSIGNMENT-FIRST CODE EVER
first_name = "John"
second_name = "Smith"
age = 20
new = True
print (first_name)
print (second_name)
print (age)
print (new)
Results
John
Smith
20
True
name = input("what is your name? ")
print("Hello " + name)
age = input("how old are you? ")
print("okay")
situation = input("Are you new? ")
print("Thank you " + name + " you can go now. ")
26:26 yo idk but thats basic mathmatics. 10 + 3 * 2 is always 16 and (10 + 3) * 2 is always 26. Not just in Python. xd
Weight = int(input("Weight: "))
Unit = str(input("(K)g or (L)bs: "))
if Unit == "K" or Unit == "k":
print("Weight in Lbs: ",Weight*2.25)
elif Unit == "L" or Unit == "l":
print("Weight in Kg: ",Weight/2.25)
else: print("please use the right unit (L for Lbs, or K for Kg)")
name = John Smith
age = 20
new_patient = True
learning python to escape computer technology class gang
🔽
BLOCK OFF CODEE, MINE GOES STRAIGHT TO LINE 4 WITHOIT INDENTIOONNN
for agi
i wanna make an ai
As a beginner with a friend that programms for 6+ years right now he wrote me a code for 3rd exercise that I find easiest to read. Just to put it out there for others to see too.
if unit == "l" OR unit == "L":
print("Weight in kg = ", weight*0.45)
elif unit == "K" OR unit == "k":
print("Weight in lbs = ", weight/0.45)
weight being variable for first line
unit being variable for Kgs or Lbs line
Much love Mosh
Now 3.11.4 is running
i edge to your content
first_name = "John"
last_name = "Smith"
age = 20
new_patient = "Yes"
print(first_name+" "+last_name)
print(age)
print ("New Patient?"+" "+new_patient)
how is this course different from your other course on python that is about 4hrs? is one or the other more focused on specific topics?
I have a question. For the kg/lbs conversion I did it right, and it responded properly when given the "K" or "L" input. However, when I would put in something other than "K" or "L" (for example, typed in "F" just to see what happened, and it still proceeded as if I had entered "K" or "L". Why is it accepting inputs that were not listed under the unit inputs?
weight = float(input("Weight: "))
unit = input("(K)g or (L)bs: ").lower
converted_weight = 0
if unit == "l":
converted_weight = weight * 0.454
unit = Kg
elif unit == "k":
converted_weight = weight * 2.205
unit = Lbs
print(f"Weight in {unit}: {converted_weight}")
Patient_Name = 'John Smith'
Patient_Age = '20'
Patient_Status = 'New'
print("Patient Name:",Patient_Name)
print("Patient Age:", Patient_Age)
print("Patient Status:", Patient_Status)
Weight = float(input("Weight:"))
type = input("(L)bs or (K)g:")
if type == ("l"):
a = Weight/2.22222222222
print("Weight in Kg:" + str(a))
elif type == ("L"):
a = Weight/2.22222222222
print("Weight in Kg:" + str(a))
elif type == ("k"):
a = Weight*2.22222222222
print("Weight in Lbs:" + str(a))
elif type == ("K"):
a = Weight*2.22222222222
print("Weight in Lbs:" + str(a))
no way this is everything about python
Thank you bro Mosh
am learning for web development
1st exercise:
# Declare variables for patient information
patient_name = "John Smith"
patient_age = 20
new_patient = True
# Print the patient information
print("Patient Name:", patient_name)
print("Patient Age:", patient_age)
print("New Patient:", new_patient)
im learning because im unemployed and ran out of interesting video games
name = "John Smith"
age = 20
how_long = "New Patient"
first_name: ("John Smith")
last_name: ("John Smith")
age: 20
is_new: True
data science
9:00 Exercise
age = 20
first_name = ("John")
last_name = ("Smith")
is_new = True
❤👍
I loved this
27:03 he said divided instead of times but it's okay, this happens a lot to me
I'm here 3 years later and I am learning this so I can just get a good job and get a ps5 before I'm 16. Not the job, just the skills required to get the job.
patient_name = "John Smith"
age = 20
is_new_patient = True
print("patient name: ",patient_name, "| age: ", age, "| new patient? : ", is_new_patient)