Тёмный

#33 Python Tutorial for Beginners | Function Arguments in Python 

Telusko
Подписаться 2,4 млн
Просмотров 648 тыс.
50% 1

Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-sp...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Discord : / discord
In this lecture we are discussing :
all variables are actually references to objects in memory. Thus, when a function is called with a parameter, the reference to the object is passed by value.
For immutable data types like integers, floats, and strings, changes made to the parameter inside the function do not affect the original value of the parameter outside the function. This is because any changes made to the parameter create a new object in memory, and the original reference to the object remains unchanged.
For mutable data types like lists and dictionaries, changes made to the parameter inside the function do affect the original value of the parameter outside the function. This is because the reference to the object remains the same, but the contents of the object can be modified.
def update(lst):
print(id(lst))
lst[1]=25
print(id(lst))
print("x",lst)
lst = [10,20,30]
print(id(lst))
update(lst)
print(lst)
The above code defines a Python function called update that takes a list lst as a parameter. The function first prints the memory address of the list using the id() function. It then modifies the second element of the list by assigning it the value 25. The function then prints the new memory address of the list and the updated list.
The code then creates a list called lst with the values [10, 20, 30] and prints its memory address using the id() function. The update function is then called with the lst parameter. Since lists are mutable objects in Python, the memory address of the list is passed to the function, making it a pass by reference.
Inside the update function, the second element of the list is modified to 25. Since lists are mutable objects and the memory address of the original list is passed to the function, this change affects the original list outside the function. The new memory address and the updated list are printed inside the function.
Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist : • #1 Python Tutorial for...
Python Tutorial in Hindi : • #1 Python Tutorial | I...
Github :- github.com/nav...
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Subscribe to our other channel:
Navin Reddy : www.youtube.co....
Telusko Hindi :
www.youtube.co....
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
www.telusko.com...

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 339   
@avanias8000
@avanias8000 3 года назад
The simple concept is integers are immutable so we can't change or update orginal value(the value stored before update).List is mutable so we can update the original value
@KoreaRwkz
@KoreaRwkz 4 года назад
Pass by value: (creation of another container with the same value ---> now we have 2 containers with the same value ----> they are independent of each other, changing the value inside one container does not change the value inside the other container) Value is passed, resulting in 2 separate locations in the memory storing the same value. Therefore, a change in the 'copied' value will not affect the original value because they are inhabiting separate memory locations. Pass by reference: (there is no creation of a new container, this is just aliasing) Pointing the function to the memory location of the data/value you are passing. In other words, no copying of values are actually taking place. So there really is only one memory location storing one value. This is basically aliasing. So a change in one of the aliases will obviously affect the value of the other aliases because they are the same thing. In Python: When you pass a variable with its value into a function, if its value is not changed by the function, reference (physical location / address on memory) is not changed. So at this point, there is no creation of a new memory (container). But as soon as the function changes the value of the argument, a new memory is created, so now you have 2 containers holding different values. But this is only for immutable (cannot be mutated/modified/changed) datatypes like integers and strings. But if you pass in a mutable datatype like a list into the function and change its value, since it is mutable, the data can be updated/changed in-situ (without the creation of a new memory). This results in still just one memory location, but with an updated value stored in it.
@user-yy5rf3ly7b
@user-yy5rf3ly7b 2 года назад
This was very helpful. I appreciate your efforts. Many thanks!.
@GULLAPUDILIKITHBCE
@GULLAPUDILIKITHBCE 2 года назад
and one more thing is immutable can't change their address so they just create another variable at that address(if something changed), whereas mutables like list can change so they don't change their ids and exist at same id
@sanjeevKumar-eg6hp
@sanjeevKumar-eg6hp 2 года назад
@Brandon Lim Thank you for this quick updated explaination
@shammishriyan
@shammishriyan 2 года назад
thanks a lottt brother
@Fusion-is-future
@Fusion-is-future 2 года назад
This was very helpful. Thank you so much
@user-jc6te1vm8v
@user-jc6te1vm8v 3 года назад
for the 1st time, could not understand the lecture at all sir....
@pranavjambare9327
@pranavjambare9327 5 лет назад
Need more explanation, Can you make new video on same thing? & yes watching series from long, it's amazing :)
@hemajeyalakshmi9106
@hemajeyalakshmi9106 3 года назад
oh god!!! as the array comes, i started watching every video the second time .
@solanki7234
@solanki7234 2 года назад
I too.
@solanki7234
@solanki7234 2 года назад
😂😂
@notknown6643
@notknown6643 Год назад
Sir ,as a beginner i'm not able to understand only this video , plz do something about it Btw love your series
@Notyouranalyst
@Notyouranalyst 3 года назад
He is the exact senior developer, we see in the memes..... Thank you navin ✌️
@nareshkollipora5323
@nareshkollipora5323 5 лет назад
you miss the clarity sir!
@rajeshsagar3912
@rajeshsagar3912 3 года назад
Me too felt the same
@divyamsinha3935
@divyamsinha3935 3 года назад
its sad
@avanias8000
@avanias8000 3 года назад
The simple concept is integers are immutable so we can't change or update orginal value(the value stored before update).List is mutable so we can update the original value
@aninditapaul1251
@aninditapaul1251 3 года назад
Yes sir, kuch samajh nahi aaya
@sumantakumardutta986
@sumantakumardutta986 3 года назад
This series is very much helpful for students like me, who is switching from Java to Python. Thanks Navin sir.😀
@rohanram7197
@rohanram7197 5 лет назад
Sir , not able to understand this . Could you please explain theses concepts again I’m a big fan of you’re previous videos 🙏🏻
@shrabantitalkmovies6647
@shrabantitalkmovies6647 4 года назад
me too really
@vasu7031
@vasu7031 6 лет назад
can't able to understand the concept..just give brief example..
@sapehianitin
@sapehianitin 5 лет назад
In Python, we don't have the concept of 'pass by value' or 'pass by reference'. Instead, we have mutable and immutable arguments passed to the function. Integer and strings are immutable, hence when they are passed as argument a new memory address is initialized (@ x=8) and original value of a isn't updated. However, list is mutable object and when it's value is updated in update function original list is also updated. So there is no change in memory address of list lst.
@hamzanaeem4838
@hamzanaeem4838 5 лет назад
@@sapehianitin Can you plz tell me that why we do nt use loops to print array elements and how it is working without loops ,,,means this does not work in java or c++ without using loop
@sapehianitin
@sapehianitin 5 лет назад
@@hamzanaeem4838 I'm not able to understand your query. Please be more specific with an example of your choice
@prashantdarade9327
@prashantdarade9327 4 года назад
I'm from non IT field, till video 32 i understand all concept but in this video not getting any concept clearly and easy, so can you please explain simple way
@AtharvP07
@AtharvP07 4 года назад
so True. the same thing happened to me. I think from 33 or so onwards, he kind of skipped to explain a few basic things. So, as a fresh beginner from a non-IT field, it's difficult to grasp some things especially since the 2nd half of the last video.
@AmanAliJB
@AmanAliJB 3 года назад
In Python, we don't have the concept of 'pass by value' or 'pass by reference'. Instead, we have immutable or mutable arguments passed to the function. If we pass immutable objects like integer or string to function and try to update their value, their original value will not be updated instead a new variable will be created with updated value at new memory address. If we pass mutable objects like list or dictionary and try to update them, their original value will be updated at the same memory address
@AmanAliJB
@AmanAliJB 3 года назад
@@AtharvP07 In Python, we don't have the concept of 'pass by value' or 'pass by reference'. Instead, we have immutable or mutable arguments passed to the function. If we pass immutable objects like integer or string to function and try to update their value, their original value will not be updated instead a new variable will be created with updated value at new memory address. If we pass mutable objects like list or dictionary and try to update them, their original value will be updated at the same memory address
@sonampandey7278
@sonampandey7278 2 года назад
Thank you Navin Sir, i have gone through many sites but your tutorial is really outstanding....
@subho3651
@subho3651 6 лет назад
One of the best series on Python
@fa7234
@fa7234 Год назад
mutable variables (integers and strings): passed by value, new memory location created immutable variables (lists): passed by reference, original variable updated at the same location
@saifsiddiqui8017
@saifsiddiqui8017 3 года назад
Following your python series this was the first lecture vedio that i couldn't understand
@Gentlistic
@Gentlistic 2 года назад
Sir, I've seen 32lectures before this, but I m totally confused with this one.
@desiboy1020
@desiboy1020 Год назад
After watching 5 to 6 times I finally understand it 🙏
@zakiasmaa6834
@zakiasmaa6834 Месяц назад
In Python, when you pass a parameter to a function, you're not exactly doing "pass by value" or "pass by reference" as you might in other languages like C++ or Java. Python uses a model that's often called "pass by object reference" or "pass by assignment".In Python, when you pass a parameter to a function, you're not exactly doing "pass by value" or "pass by reference" as you might in other languages like C++ or Java. Python uses a model that's often called "pass by object reference" or "pass by assignment". -Mutable( like liste): Changes in the function affect the original because both the function and the original variable are pointing to the same object. -Immutable like (integers & strings) :Changes in the function do not affect the original. I hope this explanation can help someone and thank you Navin
@BhumikaShukla-wz4km
@BhumikaShukla-wz4km 20 дней назад
Sir could you please explain this again (pass by value and reference by value topic ) And also explain why we need of this ?
@vakhariyajay2224
@vakhariyajay2224 2 года назад
Thank you very much. You are a genius.
@ArtiSharma-qy1ho
@ArtiSharma-qy1ho 2 года назад
The way you teach.. really amazing.. Thank you sir
@mr.curious1714
@mr.curious1714 3 года назад
The best video . got all my doubts about arguments in functions in python . and in just 8 minutes .!
@hallo-xp2wh
@hallo-xp2wh 2 года назад
what i understood is int and string are immutable, there value is passed only in defined function and not to the whole following code. while list and dictionary pass the updated value to the following code out of user defined function
@prashanthpanuganti5336
@prashanthpanuganti5336 6 лет назад
Thank you Soo much Sir for doing this series... #Telusukuntunanu 1 view
@MrHmm-cv6gs
@MrHmm-cv6gs 4 года назад
let me put it in simple way if two variable holding same value, then there address would be same, that's how python save memory, in others languages , two variables with same value will hold two different memories. hence waste of memory.
@rohitdkashyap407
@rohitdkashyap407 2 года назад
Please add a video for this. This concept was a bit confusing.
@sivakumar-mu3wj
@sivakumar-mu3wj 5 лет назад
#Basically i think if the individual item in a list is modified, it's change will reflect in the complete list def func_test(var_a): print("InFunc-B4-Changes Value is ",var_a) print("InFunc-B4-Changes Addr is ",id(var_a)) print("InFunc-B4-Changes Addr of indexes is", id(var_a[0]), id(var_a[1]), id(var_a[2])) var_a[0]=10 var_a[1]= 20 var_a[2]=30 print("The index change in var_a to",var_a[0],var_a[1],var_a[2]) print("InFunc-Aftr-Changes Value is ",var_a[0],var_a[1],var_a[2]) print("InFunc-Aftr-Changes Addr is ",id(var_a)) print("InFunc-Aftr-Changes Addr of indexes is",id(var_a[0]),id(var_a[1]),id(var_a[2])) var_a= [1,2,3] print("var_a value B4 Func call is", var_a) print("var_a Addr B4 Func call is", id(var_a)) print("I Addr of indexes is ", id(var_a[0]), id(var_a[1]), id(var_a[2])) func_test(var_a) print("var_a value Aftr Func call is", var_a) print("var_a Addr Aftr Func call is", id(var_a)) print("var_a Addr of indexes is ", id(var_a[0]), id(var_a[1]), id(var_a[2]))
@dineshkumar-je2mw
@dineshkumar-je2mw 4 года назад
others said in integer python work as pass by value list python work as pass by reference that's wrong sir. you are correct sir. integer is immutable because it does't change the value but list is mutable so it change the value Thank you sir
@sanjeevKumar-eg6hp
@sanjeevKumar-eg6hp 2 года назад
Thank you so much for making this video i was breaking my head over this as in case of immutable variables everytime a change happens python will create a new memory but for mutable variables it uses the same memory so if see the list before and after the calling the function both will have the same value.
@pankajjadhav7494
@pankajjadhav7494 5 лет назад
i do like the videos and i would like to have source codes thats shown in your video for pratice purpose can you helpme out .
@sreerammeka9238
@sreerammeka9238 4 года назад
What is the memory address of elements in a list? Why is it printing only one memory address for multiple elements in a list? How does the elements in a list gets stored in memory? Does it store the element at index 0 at the printed location, and element at index 1 at memory[0]+1 something like that?
@rahulvaswani8866
@rahulvaswani8866 5 лет назад
Can you please explain us again Although the series is amazing but I didn't understand this concept
@firdhoussajan6401
@firdhoussajan6401 10 месяцев назад
As I am new to Python programming language. I really like the way of your training. But my friend told me that the code changes for every version of Python. Is it okay to learn the content you have given in these videos because it is uploaded before 4 years?
@roopagowda9271
@roopagowda9271 2 года назад
Sir, In the scenario of list, original values got changed, should we create a copy of the list in the function always in order to prevent overriding or original values ?
@geethapakala1941
@geethapakala1941 5 лет назад
Sir, you are teaching the concepts very easily
@manoharsagunthalla9215
@manoharsagunthalla9215 3 года назад
If you give with any practical example that would be more helpful. I have price of commodities, after few days the price has change on review I need to see both prices how to do that?
@saurabhnegi4977
@saurabhnegi4977 4 года назад
Sir i am not able to understand this concept. Big fan of yours
@syedabdulmuqtadir9492
@syedabdulmuqtadir9492 13 дней назад
I was not able to get this lecture. Please give a good explanation on this
@saurabhbehere5435
@saurabhbehere5435 4 года назад
debug surely helps understand this concept. & if your experimenting then this video gonna raise lot of questions than answers :D but very interesting.
@anshulagarwal5137
@anshulagarwal5137 2 года назад
Sir, if the value of a is updated by function but then why value of a is printed as 10...and if the parameter(a) that is taken by the function is not the parameter which we have assigned value 10,then why the ID of a is same as the parameter(a) passed through the function..
@anshulagarwal5137
@anshulagarwal5137 2 года назад
Now my doubt is clear sir after seeing the video#36 Thank you very much sir for providing such quality content..😃😃
@snehajitchandra2976
@snehajitchandra2976 6 лет назад
Really nice video sir!!!!!
@apoorvshandilya4929
@apoorvshandilya4929 3 года назад
if you make an another video over this topic then please share the link
@NitinJainNoida
@NitinJainNoida 5 лет назад
this is the first video of yours which I did not understand...no probs, i will keep it in my vault
@jahnvipandey1111
@jahnvipandey1111 2 года назад
Lots of love and respect sir !❤
@rverm1000
@rverm1000 2 года назад
Completely defeats the point I'm lookin for. How to pass data into the function. Nobody needs to know the values are sharing a memory space.
@namratasurve6708
@namratasurve6708 5 лет назад
this video was very conceptual and one should better understand this basic concept
@atharvaborikar6125
@atharvaborikar6125 3 года назад
this video was totally above my head....u totally confused me 😵😵
@eswarreddy1003
@eswarreddy1003 4 года назад
Sir, I cannot understand why the output of both the prints is same even though we are changing the element 1 in list in update(list) . Please kindly reply my comment
@bhuvaneshwarans5089
@bhuvaneshwarans5089 5 лет назад
def fun(a,*b,c): print(a) print(b) print(c) fun(5,8,"bhuvan",89) sir 'b' will take , how much arguments
@sukshithshetty4847
@sukshithshetty4847 6 лет назад
Why is it updating the original list ?? Like what should i do if i want to print the old list(directly) and the updated list (through function)??
@hemanthyernagula9759
@hemanthyernagula9759 5 лет назад
Clearly tell me one thing is there any concept like pass by value and pass by reference?
@sreecharan4300
@sreecharan4300 5 лет назад
no, not in python as far as i understood after watching the video
@roushanraj3009
@roushanraj3009 3 года назад
def up(x): x = 9 print("x ",x) up(4)................. What is the use of passing this "4"?????
@mryueen3744
@mryueen3744 4 года назад
Difference between return and priny
@prathameshsatyarthi5552
@prathameshsatyarthi5552 4 года назад
if interviewer ask me if we not use pass by value nor reference in python then what you use? Then in that case what should be my answer
@gauravmalhotra007
@gauravmalhotra007 4 года назад
i made it a bit complicated sir..but i m enjoying it...loved your way of teaching #-----CALLING A FUNCTION TO UPDATE A VALUE--- #----OBJECTS ARE IMMUTABLE but list is mutable---- #----THERE IS NO CALL BY VALUE OR CALL BY REFERENCE IN PYTHON---- def update(x,lst): print(id(x)) x=8 print(id(x)) lst1= lst lst1[1]=2 print('the value of x is: ',x) print(lst1) a=int(input("enter the no u want to update :")) print(id(a)) lst=array('i',[]) n=int(input('enter the no of items you want in the list')) for i in range(n): y=int(input("enter the no to be added to the list :")) lst.append(y) print(lst) update(a,lst) print(" the value of a is : ",a)
@Gentlistic
@Gentlistic 2 года назад
Are you still available to make me understand in more simple way.
@sreecharan4300
@sreecharan4300 5 лет назад
sir in case of lst it is acting as pass by reference right(changes made in x are being reflected in a) so i'm not really clear in this concept can anyone explain..??
@surendrabarsode8959
@surendrabarsode8959 Год назад
Amazing video.. only hope those who watched understood what is being talked about!! God save the Gen Z or whatever if this is how concepts are taught! Thanks Brandon Lim for his comments below for clarity.
@vishalsinghrathore7670
@vishalsinghrathore7670 11 месяцев назад
All good but pleace change the background please convert it into black it hurts, genuine comment from my side
@t.shravyasree-ie-2435
@t.shravyasree-ie-2435 11 месяцев назад
If i watch it....10 times i wont understand...i knew english. And concepts of python before this...but this didn't get....ufff!!!...
@raj_harsh_
@raj_harsh_ 2 года назад
Pass by value: We pass the copy value of the object and changing the copy of object will not change the original object. Pass by reference: We pass a reference or memory to the function and changing the object in the function will ultimately change the original object as they both reference to the same memory location. However in python, Concept of pass by value or pass by reference is dependent entirely on the mutability of the object passed to the function. If the passed object is immutable like a number or string. i.e changing them would create entirely new object. Passing by value comes to play. However in case of mutable objects like lists. Changing the value will cause it to change the original object directly. This feature portrays the pass by reference.
@juhiaggarwal908
@juhiaggarwal908 5 лет назад
Unable to make out that since the value of x is 8 and still it is pointing 10. How?
@suprithasathish5435
@suprithasathish5435 4 года назад
Sir, can you please post another video on this with brief explanation...
@gyanendrapandey8451
@gyanendrapandey8451 6 лет назад
Is there any main method in python or not
@varshanurs7051
@varshanurs7051 6 лет назад
sir i am confused that when we did the first example of passing a int x, when we did x=8 the address changed but when we did lst[1] the address didnot change though the value changes from the initial list ca u explain t in a detailed way sir
@TheGeneralCase
@TheGeneralCase 5 лет назад
Apparently the int type is "immutable" whereas the list type is "mutable " .
@lakshmitejaswi7832
@lakshmitejaswi7832 5 лет назад
make a video on decarators .pls
@krishj8011
@krishj8011 4 года назад
thanks...very useful....
@abhishek_kr_8635
@abhishek_kr_8635 4 года назад
Yeah enjoy 👍
@ganeshmane
@ganeshmane 4 года назад
Thank you
@rajeevsinghrajput6752
@rajeevsinghrajput6752 6 лет назад
thanks sir
@GowthamChandmanikanta
@GowthamChandmanikanta 11 месяцев назад
in your 7-15 mins video there is lot of matter to undrestand
@the_indian_reads
@the_indian_reads 6 лет назад
Dint understand the concept why lst was updated
@vinodhkumar2156
@vinodhkumar2156 3 года назад
Thank you !!
@mirmeraj5703
@mirmeraj5703 5 лет назад
It's super cool video.
@AtharvP07
@AtharvP07 4 года назад
In my very honest opinion, belonging to a non-IT field (and also Python being the first language I am learning, and this playlist being my first source for it), I think you are losing the touch from the last video sir. This series of videos started off great, but I am not able to understand and grasp some things now. Please focus more on clearing the concepts rather than your fluency or other things. A big thank you for all the videos until now. You are the reason I got hooked to Python, but please clarify better. Thanks.
@jahnvipandey1111
@jahnvipandey1111 2 года назад
Believe me , you just need to practice
@muhammadabubakar6220
@muhammadabubakar6220 2 года назад
5:13 time was amazing.LOL
@shanu_fs2110
@shanu_fs2110 4 года назад
your code is not working for me
@nithyakalyani2327
@nithyakalyani2327 5 лет назад
Hello sir just a small doubt.... Is there a difference between parameters and arguments.....
@shankerrao6757
@shankerrao6757 5 лет назад
Both are same.
@ajeshkalayil5931
@ajeshkalayil5931 5 лет назад
parameter is variable and the argument is value
@ajeshkalayil5931
@ajeshkalayil5931 5 лет назад
@@shankerrao6757 no bro they're diffrent like see and sea
@shiwamkarn5215
@shiwamkarn5215 Год назад
First time I did not understand well😣😣🥺
@saiswaroop5889
@saiswaroop5889 6 лет назад
Isn't the lst list global?
@vishalgoyal5596
@vishalgoyal5596 6 лет назад
i am new to programming my problem is logic .what should i do to improve my logic ? please reply
@blasttrash
@blasttrash 6 лет назад
solve problems from hackerrank or hackerearth or leetcode etc.
@vaishalirathi5530
@vaishalirathi5530 3 года назад
Not understanding this video can you brief it in more detail
@deepaiyer9955
@deepaiyer9955 6 лет назад
Video is not clear its very blur😢😢😢😢
@keshavashukla
@keshavashukla 4 года назад
#to understand how memory allotment works in python for list run the below code #run the code with first uncommenting the line #list1[1]=25 # then uncomment the other line and #list1 =[8,3,5] and run the code. def update(list1): print(list1,"List 1 is ",id(list1)) print("id of second list1 item is ",id(list1[1])) #list1[1]=25 #list1 =[8,3,5] print(list1,"List 1 is ",id(list1)) print("id of second list1 item is",id(list1[1])) list2 = [10,20,30] print(list2,"List 2 is ",id(list2)) print("id of second list2 item is",id(list2[1])) update(list2) print(list2,id(list2)) print(list2[1],id(list2[1]))
@calliart6586
@calliart6586 4 года назад
Can anyone noticed that 'a' and 'x' both are pointing to 8 not 10.. Correct me if i'm wrong.
@gcele-4133
@gcele-4133 4 года назад
sorry sir i cant understand this.can u please add another video for this concept
@sri1426
@sri1426 5 лет назад
if i change one element in list means its changing ,but if i change the whole list means its getting different values (a,x)
@sri1426
@sri1426 5 лет назад
it has to change the whole list ryt why this is not doing
@_JaiBharat_
@_JaiBharat_ 4 года назад
@2.00 ,technically 10 should b printed ,why it does print 8..nt gettin it
@ojikutu
@ojikutu 4 года назад
IMHO, its easier to think that integers and strings are passed by value while lists are passed by reference.
@tokay6467
@tokay6467 4 года назад
ALMOST AT 1M
@aimenbaig6201
@aimenbaig6201 4 года назад
Thank youu
@HamzaShahzadEB_
@HamzaShahzadEB_ 4 года назад
Unable to get the concept
@harishu7238
@harishu7238 5 лет назад
Sir this video is not able to understand can to explain the flow with example really I can't understand I got stuck in this video means function please do this function video nicely with flow how is going and coming please do video with examples
@sonuJujjavarapu
@sonuJujjavarapu 8 месяцев назад
Unable to understand the last concept
@jonnywinkler6328
@jonnywinkler6328 4 года назад
I do no know where to learn Python. Please recommend me something.
@gamersingh3271
@gamersingh3271 4 года назад
First complete this playlist. This go for the big video of clever programmer
@aarayan111
@aarayan111 4 года назад
def func1(a): print(f"this is func with argument {a}") func1(4) explain any one why error at {a}
@giridharsriram9404
@giridharsriram9404 4 года назад
in print u entered f which is not defined anywhere i may be late i hope u got what u want
@aarayan111
@aarayan111 4 года назад
@@giridharsriram9404 No actually code is ok The error rise due old python version Now i update my python version its run
@swathepriyareddy3625
@swathepriyareddy3625 5 лет назад
can u explain this by another example
@mryueen3744
@mryueen3744 4 года назад
Print*
@scaredcrew
@scaredcrew 2 года назад
please not so fast. explain slowly.
Далее
10 Important Python Concepts In 20 Minutes
18:49
Просмотров 135 тыс.
С какого года вы со мной?
00:13
Просмотров 174 тыс.
Python Functions (The Only Guide You'll Need) #12
17:20
#43 Python Tutorial for Beginners | Filter Map Reduce
11:34
Functions in Python are easy 📞
10:38
Просмотров 490 тыс.
Python Tutorial for Beginners 8: Functions
21:48
Просмотров 1,1 млн
#49 Python Tutorial for Beginners | Class and Object
11:01
Please Master These 10 Python Functions…
22:17
Просмотров 164 тыс.