Python Bangla Tutorials 34 : Set

preview_player
Показать описание
Learning outcomes:
1) what is set ?
2) how to declare set ?
3) set operations - union, intersection, difference
Full Python Course is here :
Рекомендации по теме
Комментарии
Автор

ami mesin lurning er jonno python vasay amon akta siriz uposthapon korar jonno apnake onek dhonnobad

nabilhosain
Автор

#Set input From User
Set = set()
print("Enter Element Number :: ")
n = int(input())
for i in range(n) :
value = int(input())
Set.add(value)

print("\nSet :: ", Set)

aubdurrobanik
Автор

Via,
num1={1, 2, 3, 4, 5}
num2 ={5, 6, 7, 8}
print(num2)
Output: {5, 6, 7, 8}
But
num2={6, 7, 8}
print(num2)
Output: {8, 6, 7}
Why not printed: {6, 7, 8} ???
Please answer it.

MINEDITZZ
Автор

num1 = {2, 20, 3, 4, 5, 5}
num2 = set([6, 7, 8])
num2.add(9)
num1.remove(4)
print num1
print (num2)
print 7 in num2
print 7 in num1

output :
set([2, 3, 20, 5])
set([8, 9, 6, 7])
True
False

pls help us

ronidas
Автор

## SET input from user in a one line
n = int(input("enter number of element you want for set"))
## Let set name is A
A = set(int(j) for i in input().strip().split()[:n])
print(A)

ASADULLAHALMAHMUD
Автор

Can you please send the python all PPT?

ayeshaasha
Автор

“Python” Tutor Wanted
About Student

Graduated (2010) from the Mathematics discipline
Learned C language during the bachelor
Need a python Tutor for “Beginner to Advance level”

Tutor Selection and Qualification

1.Study time Saturday 4:00 - 5:30 PM and Sunday 4:30 – 5:00 PM
(per week 3 hours)
2. Honorarium 500 Taka/hour (per month 6000 Taka, if full attend)
3. Payment monthly basis
4. Tutor must have punctual
(Without 2 hours’ prior notice for every 12 min. late, 100 Taka will be deducted)
5. Tutor must have own computer and internet facility
6. Study medium: WebEx/Zoom/Skype
7. Tutor should have documented and organized
Next, python advance level according to teacher syllabus
9. If you have a GitHub website then you will be given more priority based on experience/project
10. Programming Job experience will be given more priority
Contact: skype: iamfarhadbd

arifhasan