I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
Mosh I really appreciate your work. But almost all your tutorials are really really basic. I would like to see more advanced things like cloud integration, a complete software deployment or advanced algorithms for real needs in enterprise software
Hello! I am currently coding a discord bot, and I have a list full of roles that i want to be used, and i want to use the list as it is, but separate it with 'or'(so it will be - 'command.has_role(list_of_roles)', but i want it to be like 'mod *or* admin,* or* bot'. how do i do that?)
So when I ran the letters = ["a", "b", "c"] items = (0, "a") index, letter = items for index, letter in enumerate (letters): print (letter[0], letter[1]) What I received was error message "Traceback (most recent call last): File "./prog.py", line 5, in IndexError: string index out of range" What did I do wrong?
Could you write the code that uses a list containing three characters and then asks a user to enter a character. The code will then search the list to see if the entered character is in the list or not. If it’s not in the list, then the user is asked to enter a different character. This loop keeps repeating until the user enters a character which IS present in the list.
list = ["a", "b", "c"] char = input("Enter any character") while char not in list: print("The character is not in list") char = input("Please enter any other character ::")
a = input("enter the list").split(",") print(a) print(type(a)) def negative(b): neg = [] for i in b: neg.append(-i) return neg print(negative(a)) I am getting an error. Traceback (most recent call last): File "@t", line 9, in print(negative(a)) File "@t", line 7, in negative neg.append(-i) TypeError: bad operand type for unary -: 'str'
Hello Mosh. I have a serious question. I've started learning to code, but i am scared by the time i qualify for a job, AI will replace us. Do you think AI will make coding obsolete?
No, because List it can be store Integer and string with multiple elements. But an Array can accept only integers and Float.. ua-cam.com/video/wWFR5-pzefQ/v-deo.html
You are definitely among the best teachers of programming on UA-cam.
💯💯
who asked
Best tutorial on python3 list I found after so long
freecodecamp
Just found this while studying for an exam - super helpful!! Thank you!
Thank you! You making trying to learn and understand this really easy and since I'm on a crash course at my college I need this lol.
Genuinely learning more from this channel then my own professor
wow. thank you so much. its complicated but easy when you understand
Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.
Very easy to understand. Thanks a lot Mosh🙏🏿
mosh, is there a way for creating multiple indexes in an index itertatively where input of those lists will be given at run time?
right to the point with great examples thanks :)
Super clear Mosh, well done. I keep learning new stuffs from you everyday.
can u plz tell me what's the editor & the theme? it would be really helpful
Just now started the beginner vedio,so far it's pretty good 👌
Congrats man your videos are awesome !!!! thanks.
Would you consider doing a Selenium Automation class with Java?
Mr mosh your tutorial its very good.
But i wanna say something.
In this tutorial you was forgotten to say extend method for adding list to list.
Great video with great details. Thanks
Hey. How do you add up numbers in a list in a specific column?
your voice is so nice and soothing
What is the program he is using? I love how it shows all the options when he does .append and then it explains them.
i think its pycharm.try searching it,ive used it a long time ago
I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
deadass makes it so easy
what is the extension called where Mosh can view the definition behind each function? @14:30
its not an extension just place the cursor on the function or any statements pycharm will give the definitions
Mosh I really appreciate your work. But almost all your tutorials are really really basic. I would like to see more advanced things like cloud integration, a complete software deployment or advanced algorithms for real needs in enterprise software
print("you're amazing by the way") @@programmingwithmosh
Looks like the channel is aimed for beginners. His more advanced lessons are behind a pay wall?
Can you tell me, why 'remove' is not in the list of the methods?
thx ( I use also VS Code)
List unpacking was well explained
thank you so much sir
more grace
Hello! I am currently coding a discord bot, and I have a list full of roles that i want to be used, and i want to use the list as it is, but separate it with 'or'(so it will be - 'command.has_role(list_of_roles)', but i want it to be like 'mod *or* admin,* or* bot'. how do i do that?)
Woa! If the list is too long and you want to find/check an item in the list, what command will you use?
So when I ran the letters = ["a", "b", "c"]
items = (0, "a")
index, letter = items
for index, letter in enumerate (letters):
print (letter[0], letter[1])
What I received was error message "Traceback (most recent call last):
File "./prog.py", line 5, in
IndexError: string index out of range"
What did I do wrong?
Muito obrigado, me ajudou demais aqui no meu programa ^^
hi man, can you share your configuration for vs code
Amazing video!
awesome, mosh
Thank You For Your Excellent Teaching sir
Thanks you saved my exam
I just shared your videos now.
how can you change/modify your previous code?
Awesome sir
Learned a lot. Thanks
Hi Mosh! This is Madhu. I have a doubt. Can we add string elements to an empty list?
Could you write the code that uses a list containing three characters and then asks a user to enter a character. The code will then search the list to see if the entered character is in the list or not. If it’s not in the list, then the user is asked to enter a different character. This loop keeps repeating until the user enters a character which IS present in the list.
list = ["a", "b", "c"]
char = input("Enter any character")
while char not in list:
print("The character is not in list")
char = input("Please enter any other character
::")
Here uou go
i love your videos so much
When is the course coming out ?
amazing, thanks bro!
from 10:11 sec *numbers type will be tuple,not list isn't?
Really helpful, thx 😊
Thank you so much. It was really helpful.
a = input("enter the list").split(",")
print(a)
print(type(a))
def negative(b):
neg = []
for i in b:
neg.append(-i)
return neg
print(negative(a))
I am getting an error.
Traceback (most recent call last):
File "@t", line 9, in
print(negative(a))
File "@t", line 7, in negative
neg.append(-i)
TypeError: bad operand type for unary -: 'str'
Hey mosh, I tried using the "*other" at (9:20) and got a syntax error. What is wrong here?
Can you send a link to your code?
Hi, are you from Hamedan originally?
thank you so much
THANKSSSS❤
Hello Mosh. I have a serious question. I've started learning to code, but i am scared by the time i qualify for a job, AI will replace us. Do you think AI will make coding obsolete?
You could learn AI code there’s always gonna be companies that need that
12:00 difficulty here. come back to it
Hi. I created a list called
numbers = [1,2,3,4,5]. But my command , numbers[0] does not give me 1.
thanks man
what if i have a list l = [ 'a', 'b', 'c'] and i want to change it to ['a', 'v', 'c'] ? how do i do that, without changing its length ?
let's say
list1 = [ 'a', 'b', 'c']
list1[1] = 'v'
here 1 is the position where you want to insert your value
thats it
remember lists are mutable
which IDE u are using?
@@programmingwithmosh why not Pycharm
What is mosh using to write this programs in
Visual studio code
awesome
do u know Bindu tc miss
Sir please upload php course.
7:00
when my list is cleared through clear method, can we retrieve the cleared list!!
Kindly advice?
no
Is List same as array ?
No, because List it can be store Integer and string with multiple elements. But an Array can accept only integers and Float..
ua-cam.com/video/wWFR5-pzefQ/v-deo.html
I want "save the changes" as my ringtone
nice
👍👏
hi
I am starting a python channel from scratch
can you help me what to do, I published videos, but I don't have any views yet!
ممنون
Sir I want php courses please upload php courses...
Please sir I request u.......🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇
LSP
I hate the transitions in this video. I think that I am done watching then I realise that I still have 15 mins to watch
let me show you
Sir i need node.js course ..i dont have money
@James McKee my card not working .i live in Village
why is your list saying they are 11 items whilst they are 10 items in the chars "hello world"??????
The space between 'hello' and 'world' is also counted
wow
have u generated more free coupons i need it
🗽
bro why cant he teach me at school. my computing teacher and school is literally shittttt
Are you Persian?
testing
can you tell the name of your theme, please🥲