Transfer file using Python

Transfer the files from one place or mobile to another using Python Using socket programming , we can transfer file from computer to computer, computer to mobile, mobile to computer. Python Code: Server Code: Client Code: Output: transferring file computer to mobile This project is contributed by Kajal Chaudhary

Python Dictionary Part-3

Q-1.Write a Python program to remove duplicates from Dictionary. Input: student_data ={‘rollno_1’:{‘name’: ‘Sara’ ,’class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_2’:{‘name’:’David’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_3’:{‘name’:’Sara’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_4’:{‘name’:’Surya’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]},} Output:{‘rollno_1’: {‘name’: ‘Sara’, ‘class’: ‘V’, ‘subjects’: [‘english, math, science’]}, ‘rollno_2’: Read more…

Python Dictionary Part-2

Q-1.Write a Python program to map two lists into a dictionary. Input: keys = [‘red’, ‘green’, ‘blue’] values = [‘#FF0000′,’#008000’, ‘#0000FF’] Output:{‘red’: ‘#FF0000’, ‘green’: ‘#008000’, ‘blue’: ‘#0000FF’} Python Code: Q-2.Write a Python program to check whether a given key already exists in a dictionary. Input: d = {1: 10, 2: Read more…

Python Dictionary Part-1

Q-1. Write a python program to Generate dictionary of numbers and their squares. Input:10 Output:{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100} Python Code: Q-2. Write a Python program to sum all the items in a dictionary. Input:{‘data_1′:5,’data_2′:6,’data_3’:7} Read more…

Python List Part-3

Q-1.Write a Python program to generate all sublists of a List. Input:[4,5,6] Output:[[], [4], [4, 5], [4, 5, 6], [5], [5, 6], [6]] Python Code: Q-2.Write a python program to find the index of element in List. Input:[5,4,3,6,8] Output:enter key:3 index is 2 Python Code: Q-3.Write a Python program to Read more…

Python List Part-2

Q-1.Write a Python program to remove duplicates from a List. Input: [10,20,20,20,30,50] Output: 20 is duplicate 20 is duplicate [10, 20, 30, 50] Python Code: Q-2. Write a Python program to check a List is empty or not. Input:[] Output:list is empty Python Code: Q-3.Write a Python program to get Read more…

Python List Part-1

Q-1. Write a Python program to sum all the items in a List. Input: [1,2,3,0,79,7]Output: 92 (Sum of elements) Python Code: Q-2. Write a Python program to get the largest number from a List. Input:[1,8,3,9,4] Output: 9(largest element in list) Python Code: Q-3. Write a Python program to get the Read more…

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert