Python Mathematics: Arithmetic Exercises
Exercise 64 || Solution Write two Python functions quotient() and remainder() which takes two numbers a and b as parameters such that : The function quotient() return the quotient q…
Django Models
1 - About the Django models In order to organize the storage data for your app, django offers you the tool called model (django model). A model shelters in the…
Creation of new django app
1. What is a django application? So far, we've only seen one procedure for creating a Django project. Now, in this section, we will create an application inside the created…
Solution Exercise 61 delete the multiple space with python in a text file
Exercise 61 Write a program in Python allowing to delete multiple spaces in a text file named myfile.txt which contains a text: T = 'Python is programming language' Solution import…
Django Administrator Interface (super user)
Django provides an integrated administration module that can be used to perform CRUD (create, read, update, delete) operations on models and applications on the django site. It provides a quick…
Solution Exercise 60: python program to count frquency repetition in given a file.
Exercise 60 Write a Python program that allows you to count the frequency of repetition of each word found in a given file. Solution # opening the myfile.txt in read…
First Django Project
1 - Creation of the django project If you are using Django for the first time, you will have to take into account the initial configuration. In particular, you will…