Tuples in Python | Python Tutorial - Day #24
ฝัง
- เผยแพร่เมื่อ 20 ต.ค. 2024
- Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.
Access the Playlist: • Python for Beginners (...
Link to the Repl: replit.com/@co...
Join Replit the browser-based IDE used in this course - join.replit.co...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithha...
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉
You are the life saver sir , everyone knows there is nothing left in colleges , almost every student learns from the teacher like you . We go to college just for attendance and learns from you so thank you sir 😊
youtube.com/@the_gupta_boy?sub_confirmation+1
I am watching this in my college free lecture
@@bhaktiruparel8723 so why you are going to college
@@gHejwjkakakkaja because of attendence😅
@@bhaktiruparel8723 bht teez horahy ho🤣🤣🤣🤣🤣
Apna teacher kaise ho code with harry jaise ho ❤❤
Haan ek dum bro apna teacher harry sir jaisa ho
agreed 👍
Narrated `Aisha:
that the Prophet (ﷺ) married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet (ﷺ) for nine years (i.e. till his death).
@@theexposer5303 Ok and?
@@theexposer5303 kehi b man nehi bharta kya jaha chahe mu uthaye chale ay
Day 24 done... Thank you so much Harry sir you are doing such a brilliant work God bless you Harry sir
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
Present sir...Thank you so much sir for making this course!!! Lots of love from west bengal❤❤
❤
Day 24
1.When we want to make a constant, then tuple is used.
2., is added if 1 item tuple is made.
3.Tuples are ordered collection of data items.
4.They store multiple items in a single variable.
5.Tuple items are separated by commas and enclosed within round brackets ().
6.Tuples are unchangeable meaning we can not alter them after creation.
7.Tuples can be sliced similar to lists but new tuple is created in the process.
8. Tuples and strings both are immutable.
how tuples are sliced? its acting same as list in my vs code,
thx bhai
Day #24 and still going on.
My continuity streak broke for a short period of time, but cannot give up on this #100DaysOfCode challenge.
same bhai
Day 24 done... Thank you Harry sir for your goodness for giving us this mind-blowing videos... Sir you are amazing and u are my favourite teacher.....love you sir.. with respect...
Harry bhai 100 days of code ko starting se follow kr rha hu Great Job💯💯💯💯
a=(345,63,235,632,'rajiv',34.23,True,'rajiv')
for i in a:
print(i)
print(a[0])
print(a.count("rajiv"))
'''
in my language
1) tuple () se represent karte hai
2) duplicate value rakh sakta hai
3) element ko add,remove,delete nahi kar sakta hai
4) ordered hota hai jisse slicing ho jati hai
5) alag alag data type value ko rakh sakte hai like int float string etc
6) immutable hota hai
'''
hamare school college mei Harry bhai jaise teacher hote na toh maja aati aur hamare results bhi aur ache hote. Parents k paise bhi kam barbad hote fees pe. Thank you Harry bhaiya
Day 24! Thanks for making me consistent Harry Sir!
You are the best teacher.
ek dam maja aa raha hai harry bhai
loving the way you teach.
Great sir, I love this #100daysofcode challenge 🥳
Narrated `Aisha:
that the Prophet (ﷺ) married her when she was six years old and he consummated his marriage when she was nine years old. Hisham said: I have been informed that `Aisha remained with the Prophet (ﷺ) for nine years (i.e. till his death).
Day #24 completed. Can't believe we are moving so fast towards the day #100 😍
Day 5 of #100DaysOfCode. Today in this video 24, I learned about Python tuples, which are ordered, unchangeable collections of data items. Tuples use round brackets () and support positive and negative indexing, as well as checking for items using the 'in' keyword. I can also access items within a specific range or print alternate values using start, end, and jump index parameters. Tuples offer an efficient way to store multiple items in a single variable, while maintaining their order and immutability.
Thank You Harry Bhaiya.
Day 5 and you are in tuple. Did you known basic of python earlier?
@@zeeshan4831nhi dia reply abhi bhi idnr
Apna teacher kaisa ho Harry bhaiya jaisa ho
--> day 24 done .Thank you harry for your great learning videos. Do you recommend any python book..
Maine college ki fees to faltu mai bhar rakhi hai, sabkuch to Mai Harry Bhai se he sikhta hu. Dhanya ho Harry Bhai aap to 🙏🙏🙏
Day 24✨
Tuple
tupples are collections of data items which can't be changed like lists.
we can perform every action on tuple like lists but we can't change it
Sir aapke sikhane ka style boht achha hai koi bor nhi ho skta
in short tuple is immutable and for that you explain as everything again thats so good proud of you bro
Sir, please make a video related to for patterns in java
The best course ever❤ thanks alot
Harry bhai , keep teach like you taught us in your HTML/CSS/JS also Git/GitHub playlist...simple language,simple examples
Harry bhai computer second year ke OOP and DSL ke practicals pr bhi video banao na plz bahoot support milega uspe aapko🙏🙏
I started agian after about 2 months and gou motivated me today. . . Literally?
Thank you Harry bhai for create this course free for us
Yes sir , kya baat hai mujhe bhi padna ka man kar gaya
#day24 maja to bohot aa rha h Harry bhai
youtube.com/@the_gupta_boy?sub_confirmation+1
we can change in number in tuples ;tup = (12,) + tuple(tup[1:])by using like this
Going very well this #100DaysOfCode with #HarryBhai ❤️🔥
Hi Harry, Firstly thanks for the tutorial I am currently on #24 and planning to complete the playlist in the next couple of weeks.
I have a question here. You said tuples are immutable; Once we create it we cannot change it.
#Create a tuple tup
tup = (1,2)
tup1= (3,4,5,6,7)
tup= tup[1:2] # tup which was earlier (1,2) now it got changed to (4,5). But my understanding was once you create any tuple it cannot be changed for the entire program.
tuple is not changed python created a new tuple
you assigned the value of tup1 to the tup which resulted in the creation of a new tuple
it created new tuple tup1" by taking value of tup index 1 - index 2 but did not chaged to value of tup
Wow MashaAllah you are good teacher of python
Day 24 done ✅
You are the life saver sir , everyone knows there is nothing left in colleges , almost every student learns from the teacher like you . We go to college just for attendance and learns from you so thank you sir 😊
Reply
Class 11 attendance 😄
Present sir😂
Bruh im class 8
@@NagKamath same just got promoted to O1
I am in class 3@@NagKamath
🙋🏻
Assal o alaiku Harry bhai. I have completed lessons till day 24 Alhamdullilah.
Harry bhaiya mai day 12 se day 18 Tak course attend nahi kar paya lekin maine saari videos dekh li and now I am always present in this course
#DAY24 COMPLETED
THANK YOU #CodeWithHarry
Harry bhaiya will you cover dsa in this course?
please make one complete playlist for ML...
Bro I made a code with the information given by you---
a = int(input("Enter the first number"))
b = int(input("Enter the number"))
def square(a, b):
print("You chose to square")
print(a*a, "= square of a")
print(b*b, "= square of b")
def divide(a, b):
print("You chose to divide")
if(a < b):
print(b/a)
elif(b < a):
print(a/b)
else:
print(1)
def addition(a, b):
print("You chose to add")
print(a, "+", b, "=", (a+b))
def subtract(a, b):
print("you chose to subtract")
ask = int(input("do you want to subtract a from b or b from a (if you want a - b then reply 1 or reply 2): "))
print(ask)
if(ask == 1):
print(a - b)
elif(ask == 2):
print(b - a)
else:
print("chose 1 or 2")
def remainder(a, b):
if(a < b):
return(b%a)
elif(b < a):
return(a%b)
else:
print(1)
# This project take too much time to be made
# a is variable
print("What do you want to do? ")
print("if you want to see the remainder enter 4")
answer = str(input("Square or divide or addition or subtract
Enter here : "))
if(answer == "square"):
print(square(a, b))
elif(answer == "divide"):
print(divide(a, b))
elif(answer == "addition"):
addition(a, b)
elif(answer == "subtract"):
print("You chose to subtract.")
print(subtract(a, b))
elif(answer == "4"):
print(remainder(a, b))
else:
print('chose a valid option')
print(type(a))
print(type(subtract))
ChagtGPT code 😂
Touples me agar 1 string value hoga tbb bhi comma lagega kya like
T=("shubham",)
thanks, Harry bhai God bless you man
big fan harry bhai
Data structure and algorithm bhi cover hoga harry bhai?
❤
PRESENT HARRY BRO I AM IN 1ST SEMESTER BUT I LEARN PYTHON YOU BECAUSE YOU ARE THE BEST ONE 🤗🤗
slicing me--> tup[ 2: ] diya h toh aap ne bola ki "len(tup)" lga do pr udr pr "len(tup)-1" lgega because index and no of elements me difference hota h!
strings and tuple are immutable and lists are mutable❤
excellent explanation !
Great explanation sir we enjoying python
Sir machine learning pe bhi playlist laiye
Love bro i am studying in Germany but it is far better than my university ❤❤❤❤❤❤❤❤❤❤❤
Hey Harry i have a question can we use sort method in tuple??
PRESENT SIR♥🔥
hello harry , in the las of my code b=a[(1*2):(4*2)] can you explain this statement, it define the range similar as [1:4]
a=(1,2,3,4,5)
print(type(a),a)
print(a[0])
print(a[1])
print(a[2])
print(a[3])
# negative indexing
print(a[-1])
# range
b=a[(1*2):(4*2)]
print(b)
100 days of python today is my 15th days thank you harry bhai
I completed java and c program from this Chanel
What I need to learn now??
Python, javascript,html
Can anyone here suggest me
It is 100 days of code so i can't start python now after 100 days i can start.
Suggest me which programs I need to know??
it is a request to please give exercise after every topic, like 2,3 practice questions, or maybe suggest some website where there are questions to practice
meri bhi continuity toot gai hai...per me phir bhi is 100 days code ko zarooor pora krngi...in sha allah...love from pakistan
iska matlab tuples lists aur arrays thode similar hote hai ?
This is so easy if you watch the video of list
import turtle as t
import colorsys
t.bgcolor('black')
t.tracer(100)
t.pensize(2)
h=0
for i in range(300):
c = colorsys.hsv_to_rgb(h,0.8,1)
t.pencolor(c)
h += 0.006
t.right(119)
t.circle(-i*0.3,120)
t.circle(i*0.3,120)
t.circle(-i*0.3,90)
t.circle(i*0.3,90)
mughai coding ka c nhi ata tha thanks for teaching and motivation🥰
Thank you so much sir!
i am on day 24 till now i have learned well all the concept , but i want to know completing 100 days worth it? will it help me to secure my first job? or enable to work on big projects? either machine learning or data science? reply to this please
my great teacher harry bhai and i am also present in your class
Hary bhai abhi Booleans ke bare me bataya hai kya????
Sir please make video on mobx state management library
Thanks 🙏
Pranam bhrata 🙏 apka bahutt baht dhanyawad 😄🧡😇🙏
khatra harry bhai upp mahan ho yrr great se v uper
bro if indexing aise ho [1 : 5: -2] is case m kaise solve kr skte h negetive to positive ??
Hi Harry I'm from rajsthan I like your all videos
Present Sir🙏😀
Bro tutorial accha hay --- font o thora bara karte toh dikhne me aur zada accha hota
haris bhai bhut maza araha hai , form PAKISTAN
Thankyou very much because my papa empress with you
print("I am Present")
Present sir 🤚
can tuple get sliced ?
tup = tup[0:3]
wouldn't it change tuple??
we can't change the original tuple but if you want the slicing of it you must create the new one, like
tuple2 = tuple[1:3]
print(typle2)
Present Harry bhaiya 🙂
i want to learn ethical hacking did i need to learn so many progframming language...? i have learned c basic and learning python and c++ also and i have learned HTML,CSS,Javascript..
bahut accha se samajh a raha hai
#24day learning-coding and enjoying.
Thanks for the video
Day24-PRESENT SIR!
Harry bhai mera aik sawaal hai mein apka purane wale python course kay playlist se python seekhna shuru karon. Ya ab naye wale python se dekhna shuru karon...
Please guide me.
Lekin aik baat tou sure hai mein ne paractice dono playlist se karni hai.
Tou kis se shuru karon purani ya nai?
acha sahi thank you so much bhai
Make videos on openCV for converting image into cartoon in android
Thank you sir for creating this video!
How can i get to any day of coding?? Plzz tell me 🙂
HarryBhai now you start React playlist step to step with notes. 🙏 ple...
etne sare advertizement ku add karke rakhe hai ?
Sir agla MERN stack development ke uper banavo
day 24 💥
Harry sir... please also cover numpy, pandas, matplotlib,seaborn in detail like this way explation for data science machine learning.... please 🙏🙏🙏🙏🙏🙏
Hi sir
I request to you
Full course data analytics banao bhai
Thank you
Completed #DAY24...