filmov
tv
Python Set | function in set | add() remove() copy() | sequence | python shorts #shorts #ytshorts

Показать описание
Perform following operations on given Set x= {10,20,30,40,50,60}
1] Add 75 element.
2] Delete 1st element from the set.
3] Create duplicate set of x.
program:
x = {10,20,30,40,50,60}
print("Add 75 Element: \n",x)
print("Delete 1st Element: \n",x)
print("After duplicate: \n",new_x)
Output:
Add 75 Element:
{50, 20, 40, 10, 75, 60, 30}
Delete 1st Element:
{50, 20, 40, 75, 60, 30}
After duplicate:
{50, 20, 40, 75, 60, 30}
full python shorts playlist:
python problem solving approch:
new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.
String in Python Program
python programming for beginners
python programming examples
in-build functions in string in python
function in python
set in python
learn python
#shorts #ytshorts #pythonprogram #tutorial #education #learning #python programmer #python #subscribers #learnpython #programming
1] Add 75 element.
2] Delete 1st element from the set.
3] Create duplicate set of x.
program:
x = {10,20,30,40,50,60}
print("Add 75 Element: \n",x)
print("Delete 1st Element: \n",x)
print("After duplicate: \n",new_x)
Output:
Add 75 Element:
{50, 20, 40, 10, 75, 60, 30}
Delete 1st Element:
{50, 20, 40, 75, 60, 30}
After duplicate:
{50, 20, 40, 75, 60, 30}
full python shorts playlist:
python problem solving approch:
new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.
String in Python Program
python programming for beginners
python programming examples
in-build functions in string in python
function in python
set in python
learn python
#shorts #ytshorts #pythonprogram #tutorial #education #learning #python programmer #python #subscribers #learnpython #programming