JSON File In Python
1 - About JSON files JSON (JavaScript Object Notation) is a popular and standard data format used to represent and store structured data made up of attribute-value pairs similar to…
Python Courses & Exercises with solutions !
1 - About JSON files JSON (JavaScript Object Notation) is a popular and standard data format used to represent and store structured data made up of attribute-value pairs similar to…
Exercise 66 Write a Python program that extract the list of all urls from given a string s. Example if s = "You can use google https://www.google.com or facebook https://www.facebook.com"…
Exercise 65 Write a Python program as function which takes as parameter a string s and returns True if the first character is the same as the last character of…
Exercise 116 From the following two lists, create a dictionary by two different methods: keys = ['Name', 'Email', 'Phone']values = ['Albert', 'albert@gmail.com', 2225668877] The output should be: data = {'Name':…
Exercise 115 1) - Write a python program which creates a file named data.txt and write the lines in this file: Name: David Email: david@gmail.com Phone: 33354587 age: 27 2)…
Exercise 114 We consider the Pythons dictionary which contains a personal data : personalData = {'Name' : 'David' , 'Email' : 'david@gmail.com' , 'Phone' : 33354587 , age' : 27…
Exercise 112 Given a dictionary d whose key values are lists. Write a Python program that transforms the dictionary d by sorting the lists. Example for the dictionary: d =…