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 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