Insertion at the beginning of Linked list | Python 🐍 for Beginners

preview_player
Показать описание
00:00 – Insertion at beginning of linked list
01:42 – Pseudo code

In this video, discussing about how to add the element at beginning of linked list. This is to be explain with the help of source code and example. I hope this video is helpful to you.

👉Code for execution:
class Node:
def __init__(self, data):
# Creating nodes
node1 = Node(10)
node2 = Node(20)
node3 = Node(30)
node4 = Node(40)
# Connecting nodes
# Adding a new node at the beginning
head=node1
new_node = Node(50)
head = new_node

► Python For Beginners (Complete Playlist):

Other Subject-wise Playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Computer Networks :
►Design and Analysis of algorithms (DAA):
►Database Management System:
► Theory of Computation
►Artificial Intelligence:
►Computer Architecture:
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Compiler Design:
►Number System:
►Cloud Computing & BIG Data:
►Software Engineering:
►Data Structure:
►Graph Theory:
►Programming in C:
►Digital Logic:
► Class XI Computer Science(Full Syllabus)
► Microprocessor Playlist:

---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
#python #pythonprogramming
Рекомендации по теме
Комментарии
Автор

Salute hai sir aapko🥺aaj hi toc ka paper hua bahhott amazing thaa times thank uh so so much Varun sir u are the hi ki playlist se padhai ki thi or thaan liya Maine ki aage bhi aap hi se padhai karungi

vijapuresalehavijapuresa-uuge
Автор

Best teacher
One request.. videos jaldi jaldi upload kre aur ye playlist jaldi complete kre

sauravchoudhary
Автор

thanks a lot sir🥺finally aaj yeh topic smjh aagya

prachibagal
Автор

Roz aapke subscribers badhte ja rahe hai ma sha allah aap deserve isse bhi zyada krte ho u r my favourite teacher everrr🥳aap na hote to hum jaise bachho ka kya hota jo ek raat pahele padhte hai😂 infinity times thank you so much🥳🥳

vijapuresalehavijapuresa-uuge
Автор

Sir aapne promise kiya tha gate DA ka syllabus krwa doge Machine Learning and AI abhitak nhi hua sir jo sabse important h please sir stand by what u said it's a request.

nikk__
Автор

that "nhi smjh mai aya abhi smjhaye ga"😂😂

alifallahorinsan
Автор

thanks a lot for the easy explanation sir. how can we create a method for insertion at beginning/end

avanishkumar
Автор

Sir polymorphism aur abstraction ki bhi videos dalo

harshvardhan
Автор

Sir ye python Gate DA ka syllabus h na

anjaligupta-ewns
Автор

sir ye wala run nehi ho raha hain mera

gayetrisarkar
Автор

Sir i have purchased your course please guide me how to log in laptop

nitinsaikia
Автор

sir AI me Adversarial search methods pe videos bana dijye na PLZ. for GATE

manishtirkey
Автор

sir full course on CCNA please only 2 months i have, i watch all your videos on network

littlejin-nx
Автор

Print nhi ho raha hai... Print krne ka code denge kya😅

cocktail