The Python NumPy Library
1. About numpy 1.1 What is numpy ? Numpy is an open source library associated with the Python language, created specially for scientific computing, notably matrix computing, while providing multiple…
Python Courses & Exercises with solutions !
1. About numpy 1.1 What is numpy ? Numpy is an open source library associated with the Python language, created specially for scientific computing, notably matrix computing, while providing multiple…
1. About matplotlib module The matplotlib module is a large and very complete module. Here we are going to look at some examples of use such as for example the…
Exercise 38 Write a Python program to find the longest word on a string. Solution: def longestWord(s): # Converting the string s to a list L = s.split() # define…
Exercise 37 Write a Python program that creates a list whose elements are the common words to two strings s1 and s2. Solution def commonWords(s1 , s2): listCommonWords = []…
Exercice36 Write a program in Python to delete multiple spaces in a string Solution: # Example of strings containing multiple spacess = " Python is object oriented a programming language"#…
The os module is a module provided by Python whose purpose is to interact with the operating system, it thus makes it possible to manage the tree structure of files,…
1 - What is a Python module ? A module in Python is simply a file made up of Python code that you can call and use its code without…