Python Tutorial in Hindi | split Function in Python | String in Python | Python split Function

preview_player
Показать описание
Python Tutorial in Hindi | split Function in Python | String in Python | Python split Function
This video is part of python tutorial for beginners in hindi.In this video, I have explained about split function in python. split is most important inbuilt method of string as it is used mostly in problem solving. Let's understand split function and it's syntax with examples.
queries covered:-
1) split function in python
2) python split function
3) string in python
4) split in python

Hello guys,welcome to codeyug to build your computer science skills.Here,you will learn programming tutorials and computer science tutorials from basics to advanced.

source code :-
Thanks for watching this video
Subscribe codeyug for more programming tutorials.
About this channel:-
This channel provides free tutorials on programming,coding,web development.There are programming tutorials which covers from basics to advanced absolutely in hindi.

Our social links:-
creator:-
------shantanu kejkar-------
#split #function #Python #Python3 #codeyug #programming #coding
Рекомендации по теме
Комментарии
Автор

Kaha chhupe huye the bhai abhi tak, bahut achcha padha rahe ho .

Dhanyavad

chandrakamalgupta
Автор

#Split()
""" The split() method breaks up a string at specific seperator and return a list of string.
syntax :
string_name.split(separator, maxsplit)
separator : Its separate strings . Bydefauly, whitespace is a separator.

maxsplit : How many split to do.
"""
msg = " hii my name is karan and i live in tamilnadu"
print(msg)
msg= msg.split() #defalut by space
print(msg)
print(len(msg))

group_of_students = ("karan, ashish,manish, chandan")
group_of_students=group_of_students.split(", ")
print(group_of_students)
print(len(group_of_students))

#Split return string to list.

group_of_students =("Karan, raj,ashish, chadan,manish")
group_of_students = group_of_students.split(", ", 3)
print(group_of_students)
print(len(group_of_students))

KaranSinghD-yjep
Автор

bhai ye string ko kaise split kre "substr(name, 1, 3)" mujhe substr name 1 3 sub alga chahiye

chandankishore