Watch my BRAND NEW Python tutorial with projects: https://youtu.be/_uQrJ0TkZlc
Looking for Python tutorials for beginners? Watch this video to learn Python online.
?Subscribe for more Python tutorials for beginners: https://goo.gl/6PYaGF
?Get my COMPLETE Python course with a BIG discount: https://goo.gl/AVb6Uq
– Python Exercises for Beginners: https://goo.gl/1XnQB1
– Python 3 Cheat Sheet: https://goo.gl/Jeu29b
Want to learn more from me? Check out my blog and courses:
http://programmingwithmosh.com
https://www.facebook.com/programmingwithmosh/
https://twitter.com/moshhamedani
These days everybody is learning Python 3 because it’s the most popular programming language. If you’re looking for a Python course that teaches you the fundamentals of Python, you’ve come to the right place.
This video shows you Python applications as well as python salaries. If you’re looking for a programming job to make more money, Python is the best programming language to learn first.
TABLE OF CONTENT
00:00:00 What is Python?
00:03:22 Installing Python
00:05:15 Python Interpreter
00:07:12 Code Editors
00:08:32 Your First Python Program
00:12:11 Python Extensions
00:15:04 Linting Python Code
00:19:20 Formatting Python Code
00:23:16 Running Python Code
00:26:17 Quiz
00:28:41 Variables
00:31:48 Variable Names
00:34:52 Strings
00:40:24 Escape Sequences
00:43:06 Formatted Strings
00:45:16 String Methods
00:51:13 Numbers
00:54:01 Working with Numbers
00:56:12 Type Conversion
01:01:18 Quiz
01:04:03 Comparison Operators
01:06:09 Conditional Statements
01:10:20 Ternary Operator
01:12:31 Logical Operators
01:16:35 Short-circuit Evaluation
01:18:44 Chaining Comparison Operators
01:20:08 Quiz
01:21:53 For Loops
01:25:32 For..Else
01:28:21 Nested Loops
01:31:07 Iterables
01:34:17 While Loops
01:39:18 Infinite Loops
01:40:57 Exercise
01:43:04 Defining Functions
01:45:30 Arguments
01:47:53 Types of Functions
01:51:57 Keyword Arguments
01:53:59 Default Arguments
01:55:36 *args
01:59:53 **args
02:02:15 Scope
02:07:26 Debugging
02:14:18 VSCode Coding Tricks (Windows)
02:16:41 VSCode Coding Tricks (Mac)
02:18:32 Exercise
02:20:03 Solution
source
Guys, watch my BRAND NEW Python tutorial here: https://youtu.be/_uQrJ0TkZlc
مشفق تو مسلمون نیستی زیر نویس فارسی انسانی بزار
This is truly amazing. Thank you good man. All the best.
Let's get real here, who disliked this video?
can someone explain to me what the python app.py thing is for?
Hello Sir..
I need a program, vba, excel sheet, or anything else.. In which I do add may data in Numaric form that is 1,2,3 etc and then that data plot or draw in AutoCAD with one click
me gusta, gracias, leonardo from costa rica !pura vida!
Hello gaffer I want to clear some of my doubt,I m going to start my masters in industrial engineering which involves statistics and operation research,so I was wondering if start learning python, SQL side by side with my masters would I be able to get job in data analytics,I just want to be sure?
which font do you use?
TEACHER 1000 HAVE : Most Romantic and Creative Proposal Ideas IN AMERICA
01:19:38 – Should line 6 not be "18 >= age < 65"?
01:39:25 – I stayed here
24:57 –> I am not able to find that open settings.json. I am using visual studio Version: 1.42.1.
hey Mosh!
could you explain the movie recommendation in python
thank you
import numpy as np
from lightfm.datasets import fetch_movielens
from lightfm.import LightFM
# fetch data and format it
data = fetch_moives(min_rating = 4.0)
#print training and testing data
print(repr(data['train']))
print(repr(data['test']))
#create model
model = LightFM(loss = 'warp')
model.fit(data['train'].epochs = 30, num_threads = 2)
def simple_recommendation (model, data, user_id, n_items=None, indices=None, user_ids=):
#number of user and movies in training data
n_user, n_item =data['train'].shape
#generate recommendation for each user we input
for user_id in user_ids:
#movies they already like
known_positives = data['item_table'] [data['train'].tocsr()[user_id], indices]
#movis our model predicts they will like
scores = model.predict (user_id, np.arange (n_items))
#rank them in order of most liked to least
top_items = data['item_labels'] [np.argsort(-scores)]
#print out the results
print("user %s" % user_id)
print(" known positives= ")
for x in known_positives[:3]:
print(" %s" % x)
print(" Recommended: ")
for x in top_items[:3]:
print(" %s" % x)
simple_recommendation(model, data, [3, 25, 450])
If your installation process is stuck at the initializing step. Untick the option to install for all users. That should fix it.
hi , can someone help me at 44 min mark, Mosh explain about the 'f' expression that takes the value in the curly braces and executes at run time. I followed the exact same sequence and saved. On running it gives an invalid syntax
this is what I had put
first = 'Nijel'
last = 'jacob'
full = f{first} {last}
print(full)
The {first} is underline in red in the code and in 'problems' I get the following message ; 'invalid syntax (<unknown>, line 3)'
and on running I get ' full = f{first} {last}
^
SyntaxError: invalid syntax"
watching your videos i came up with this coding
for x in range(1):
for y in range(1):
for number in range(1, 11):
print(f"{x + 23} * {number} = {(y + 23) * number}")
well i guess i dont have to remember tables anymore
i watch these but i am unable to practice it, damn it life! i feel like i should be changing my line of work.
24:53 I do not see the dot dot dot(…) sign ? I'm on Mac and I'm using vs code v.1.14.1
not explained clearly enough for me sorry
This guide was amazing! I'm such a newbie, but a few hours later, I feel like I can actually create something that "works" and follows best practices. Thank you! Can't wait to continue learning
Hi, which color theme you are using in vs code?
Hi Mosh, I am getting the below error while trying to Print the "Hello World"!
PS C:UsersMAYANKDesktopPython> HelloWorld $python test.py
function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ HelloWorld $python test.py
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HelloWorld:String) [], CommandNotFoundE
xception
+ FullyQualifiedErrorId : CommandNotFoundException
hello sir Mosh i really like your videos but can you make divide the video into multiple ones and create and playlist because some of us have a job and we cannot find time to watch a 1 hour video guide and sometimes can get confusion
I was installing the python linter (pylint) with the string
"C:/Program Files (x86)/Python38-32/python.exe" -m pip install -U pylint –user
However, I got WARNINGS for the scripts isort.exe, epylint.exe, pyreverse.exe, and symilar.exe were installed in
'C:UsersAndrew KornrumpfAppDataRoamingPythonPython38Scripts'
These Scripts are NOT ON PATH – though, I'm not sure what that means?
What I tried to do was to place copies of these scripts into
C:Program Files (x86)Python38-32Scripts
Which is where I have installed Python to my Windows environment, as well as where I am opening created files from
C:Program Files (x86)Python38-32Code With Mosh (r)