Social Icons

Friday, June 25, 2021

Python-courses-python-exercises-python-exception-python-pip

Exercise 62

Given a list of integers L, write an algorithm in Python which multiplies the elements of L of even index by 2 and those of odd index by 3. Example if L = [3, 2, 7, 11, 5, 3], the algorithm returns the list [6, 6, 14, 33, 10, 9]

Solution

Tuesday, June 22, 2021

In this first lesson, we'll start by defining what is Bootstrap. We then show the advantages as well as the limits of this framework so that you immediately have an idea of ​​the cases where it will be interesting to use it and those where it will be necessary to favor other solutions. We will finally see the new features brought by version 5 of Bootstrap which is the version with which we will be working and will take the opportunity to set up our working environment.

What is Bootstrap?

Bootstrap is a CSS framework. A framework corresponds to a set of libraries grouped together for a specific purpose and having internal rules that users must follow. In other words, and to put it very simply, Bootstrap is a collection of CSS and JavaScript files that work together and that we can use to create complex designs in a relatively simple way. The Bootstrap framework is therefore a set of CSS and JavaScript files which contain predefined rules and which define components. These rule sets are enclosed in classes so we will only have to use the classes we are interested in in order to apply a set of styles to a particular HTML element. In addition, Bootstrap also uses JavaScript files and in particular external JavaScript libraries like jQuery or Popper to define entire components like navigation bars, modal windows, etc. which we will also be able to directly implement.

Saturday, June 19, 2021

Python-courses-python-exercises

Exercise 61

Resume the previous exercise (Exercise60) without using the reverse() method in python.

Solution

Python-courses-python-exercises-python-students-online-courses

Exercise 60

Write a Python algorithm that reverse the order of the elements of a list using the reverse() method. Example if L = ['Java', 'Python', 'PHP', 'C ++'], the algorithm returns the list: ['C ++', 'PHP', 'Python', 'Java']

Solution

Friday, June 11, 2021

Python-courses-neighborhood-Python-courses-bin-Python-courses-python-string

Exercise 55

Write an algorithm in Python to sort a list according to the insertion sort algorithm.

Solution

Thursday, June 10, 2021

Python-courses-python-exercises-python-sets-python-inheritance

Exercise 54

Write a Python algorithm as a function which takes as parameter a list of integers L = [n1, n2, n3, ...., np] and which returns the list: [n1, n1 + n2, n1 + n2 + n3, ...., n1 + n2 + ... + np]

Solution

Tuesday, June 8, 2021

it-Python-courses-python-string--Python-courses-python-exercises

Exercise 53

Write an algorithm in Python allowing to determine the penultimate index of an element in a list without using any predefined function in Python. Example if L = [2, 7, 11, 7, 21, 39, 7] and a = 7 the algorithm returns 3.

Solution

Monday, June 7, 2021

Python-courses-python-exercises-Python-courses- built-inintegrated/DOS-python-module

Exercise 52

Write a Python program as a function which takes as parameters a tuple (L, a) formed by a list L and an element a of L and which returns the list of indexes of a in the list L. Example if L = [2, 7, 11, 7, 21, 39, 7] and a = 7 the function returns [1, 3, 6]

Solution

"""

Saturday, June 5, 2021

Python-courses-python-exercises-Python-courses- built-inintegrated/DOS-python-module

Exercise 51

Write a Python algorithm as a function which takes a list L as a parameter and which returns the list of elements duplicated at least 3 times without using neither the count() method nor any predefined method in Python. (you can use exercise 23)

Solution

Friday, June 4, 2021

features-Python-courses-python-exercises-python-oop

Exercise 50

Write a Python algorithm which returns the list of elements duplicated at least 3 times within a given list L .

Solution

Thursday, June 3, 2021

features-Python-courses-python-exercises-python-oop

Exercise 49

Write a Python algorithm as a function that takes a list L as a parameter and returns the maximum number of elements with even index without using any predefined functions in Python. Example if L = [13, 2, 31, 120, 4, 97, 15], the algorithm returns the number 31.

Solution

Wednesday, June 2, 2021

Python-courses-download-Python-courses-s-Python-courses

Exercise 48

Write a Python algorithm as a function that takes a list L of numbers as a parameter and returns the sum of elements of L with odd index. Example if L = [3, 2, 5, 11, 21, 4, 7], the algorithm returns the number 17.

Solution

Monday, May 31, 2021

Python-courses-python-exercises-python--Python-courses-configure script-run-script

Exercise 47

Write a Python algorithm as a function that takes a list L as a parameter and returns the sum of elements of the list L with odd index. Example if L = [3, 2, 5, 11, 21, 4, 7], the algorithm returns the number L[1] + L[3] + L[5] = 2 + 11 + 4 = 17.

Solution

Sunday, May 30, 2021

Python-courses-python-exercises-python-for-while

Exercise 46

Write a Python algorithm as a function which takes as parameter a string variable s and which returns the list of all uppercase characters found in s.

Solution

Friday, May 28, 2021

python-tutorial-Python-courses-python-exercises

Exercise 45

Write a Python algorithm as a function which takes as parameter a list of real numbers L and which returns the list obtained from L by removing all integers.

Solution

Python-courses-python-exercises-python-exception-python-pip

Exercise 44

Write a Python algorithm as a function which takes as a parameter a list of integers L and which returns the list obtained from L by moving all zeros to the beginning of the list. Example if L = [7, 0, 11, 0, 25, 16, 0, 14], the algorithm returns the list: [0, 0, 0, 7, 11, 25, 16, 14]

Solution

Thursday, May 27, 2021

Python-courses-python-exercises-python-files

Exercise 43

Write a Python algorithm as a function which takes as parameter a list of integers L and which returns the list obtained from L by removing all negative numbers. Example if L = [7, -2, 11, -25, 16, -3, 14], the algorithm returns the list: [7, 11, 16, 14]

Solution

Tuesday, May 25, 2021

Python-courses-python-exercises

Exercise 42

Write a Python algorithm as a function which takes as a parameter a list of integers L and which returns the list obtained from L by inserting just after each number the string 'even' or 'odd' depending on the parity of number. Example if L = [2, 11, 25, 6, 14], the algorithm returns the list: [2, 'even', 11, 'odd', 25, 'odd', 6, 'even', 14, 'even']

Solution

python-tutorial-Python-courses-python-exercises

Exercise 41

Write an algorithm in python that extracts from a list of numbers the sublist of numbers whose last digit is even and the second is odd. Example if: L = [21, 14, 346, 728, 136, 19], the algorithm returns the list: [14, 136]

Solution

Sunday, May 23, 2021

Python-courses-python-exercises-python-students-online-courses

Exercise 40

Write a Python algorithm that extracts from a list of numbers the sublist of numbers that end with an even number. Example: if L = [21, 14, 346, 728, 13, 19], the algorithm returns the list: [14, 346, 728]

Solution

Saturday, May 22, 2021

Python-courses-python-exercises-python-dictionary

Exercise 37

Write a python algorithm that extracts from a given list of numbers the sublist made up of numbers that contain the digit 3.

Solution

Friday, May 21, 2021

Python-courses-download-Python-courses-s-Python-courses

Exercise 36

Write a Python algorithm as a function which takes as parameter a couple (listScores, listCoefficients) and which returns the average obtained, where listScores designates the list of scores obtained by a students and listCoefficients designates the list of associated coefficients

Solution

Python-courses-python-exercises

Exercise 35

Write a python algorithm as a function which takes as parameter a string text T and which returns the list of words containing at least one number and one capital letter. Example: if T = 'Python2.7 has been replaced by Python3.X since 2018', the algorithm return: ['Python2.7', 'Python3.X']

Solution

Thursday, May 20, 2021

Python-courses-python-exercises-python-list

Exercise 34

Write a Python algorithm as a function which takes a string text T as a parameter and which returns the list of words containing at least two digits. Example: if T = 'Python2.7 is replaced by Python3.X since 2018', the function returns the list ['Python2.7', '2018']

Solution

Unix -Python-courses-Solaris, Linux, FreeBSDPython-courses-python-exercises-python

Exercise 33

Write a Python program as a function which takes a list L as a parameter and returns the list obtained by performing a circular permutation on the list L. Example if L = [41, 11, 34, 20, 18, 6], the program returns: the list: [6, 41, 11, 34, 20, 18]

Solution

Wednesday, May 19, 2021

Python-courses-python-exercises-python-exception-python-pip

Exercise 32

Write a Python program that move the first 3 elements of a given list and place them at the end of the list. Example if L = [25, 13, 11, 1, 4, 31, 18, 6, 12, 1, 7], the program returns: the list: [1, 4, 31, 18, 6, 12, 1, 7, 25, 13, 11]

Solution

Unix -Python-courses-Solaris, Linux, FreeBSDPython-courses-python-exercises-python

Exercise 31

For given a list of integers L, write a Python algorithm that returns the list of tuples (n, m) verifying n + m <10. Example: if L = [11, 3, 2, 22, 4, 31, 18, 6, 12, 1, 7], the algorithm returns: the list: [(3, 3), (2, 3), (4, 3), (6, 3), (1, 3), (3, 2), (2, 2), (4, 2), (6, 2), (1, 2), (7, 2), (3, 4), (2, 4), (4, 4), (1, 4), (3, 6), (2, 6), (1, 6), (3, 1), (2, 1), (4, 1), (6, 1), (1, 1), (7, 1), (2, 7), (1, 7)]

Solution

Python-courses-python-exercises-games-Python-courses-

Exercise 30

Write a Python algorithm that determines the list of words containing no digits in a given T text.

Solution

Monday, May 17, 2021

Python-courses-python-exercises-python-dictionary

Exercise 29

Write a Python algorithm that determines the list of words containing at least one digit in a given T text.

Solution

Python-courses-python-exercises-python-Array, String, user Inputs packages

Exercise 28

Write a Python algorithm that determines the list of words containing at least one capital letter in a given T text.

Solution

Python-courses-download-Python-courses-s-Python-courses

Exercise 27

Write a Python algorithm that determines the list of words starting with a capital letter in a given text T.

Solution

Python-courses-python-exercises

Exercise 26

For a given list L of integers, write an algorithm in Python that return the tuple of lists (l_even, l_odd) where l_even designates the list of even integers of L and l_odd designates the list of odd integers of L. Example for L = [11, 3, 22, 14, 31, 18, 12, 7] the program returns the pair of lists: ([22, 14, 18, 12], [11, 3, 31, 7])

Solution

python-tutorial-Python-courses-python-exercises

Exercise 25

Write a Python program that determines the list of words not containing the letter 'a' in a given text.

Solution

Tuesday, May 11, 2021

Python-courses-python-exercises-python--Python-courses-configure script-run-script

Exercise 24

Write a Python algorithm as a function which takes as parameter a couple (L, a) formed by a list L and an element 'a' and which returns the position of the element 'a' in the list L without using the index() method or any other built-in Python method. The function should return -1 if element 'a' is not present in the list L.

Solution

Python-courses-python-exercises-python--Python-courses-configure script-run-script

Exercise 23

Write an algorithm in python that returns the number of occurrences of an 'a' element in a given list L without using any predefined functions in Python. Example if L = [7, 23, 5, 23, 7, 19, 23, 12, 29] and a = 23, the algorithm returns 3.

Solution

Friday, May 7, 2021

Exercise 22

Write an algorithm in python that returns the list of duplicate elements of a given list without using any predefined functions in Python. Example if L = [7, 23, 5, 12, 7, 19, 23, 12, 29], the algorithm returns the list [7, 23, 12].

Solution

Scalable-Python-programming languages-Python-courses-python-exercises

Exercise 21

Write a Python algorithm that returns the list of duplicate elements of a given list. Example if L = [7, 23, 5, 12, 7, 19, 23, 12, 29], the algorithm returns the list: [7, 23, 12]

Solution

Python-courses-python-exercises-python-students-online-courses

Exercise 20

Write a Python algorithm which returns the maximum of the list without using any predefined function in Python.

Solution

Thursday, May 6, 2021

features-Python-courses-python-exercises-python-oop

Exercise 19

Write an algorithm in python as a function which takes as parameter a list of numbers L and which returns the minimum of the list without using any predefined function in Python.

Solution

it-Python-courses-python-string--Python-courses-python-exercises

Exercise 18

Write a Python program that determines the symmetric difference of two lists L1 and L2, i.e. the list made up of the elements of L1 which are not in L2 and the elements of L2 which are not in L1 Example if: L1 = [11, 3, 22, 7, 13, 23, 9] L2 = [5, 9, 19, 23, 22, 23, 13] The program returns the list [11, 3, 7, 5, 19]

Solution

def symetricDifference(L1 , L2):
    # initialiser la liste difference sysmétrique de L1 et L2
    diffSym = []
    for x in L1:
        if x not in L2:
            diffSym.append(x)
    for x in L2:
        if x not in L1:
            diffSym.append(x)
    return diffSym
#Example
L1 = [11 , 3 , 22 , 7 , 13 , 23 , 9]
L2 = [5 , 9 , 19 , 23 , 22 , 23 , 13]
print("The symetric difference of L1 and L2 is : " , symetricDifference(L1 , L2))
# The output is: The symetric difference of L1 and L2 is :  [11, 3, 7, 5, 19]


Younes Derfoufi
my-courses.net
Scalable-Python-programming languages-Python-courses-python-exercises

Exercise17

Write a Python program that determines the difference of two lists. Example if: L1 = [11, 3, 22, 7, 13, 23, 9] L2 = [5, 9, 19, 23, 10, 23, 13] the program returns the list: [11, 3, 22, 7]

Solution

Tuesday, May 4, 2021

Exercise 16

Write a program in python that randomly mixes the elements of a given list.

Solution

Monday, May 3, 2021

Python-courses-python-exercises-python-certification

Exercise 15

Write a Python program in the form of a Python function which takes two lists as parameters and returns the list of elements common to these two lists.

Solution

Python-courses-python-exercises-python-for-while

Exercise14

Write a Python program as a function that takes two lists as parameters and returns True if the two lists have at least one common element and False if not.

Solution

it-Python-courses-python-string--Python-courses-python-exercises

Exercise 13

Write a python algorithm to remove duplicate elements from a list.

Solution

Exercise 95*

Write a Python function to get any string/sentence and returns the most repeated word.

Solution

Exercise 94*

Write a Python program as function that takes as parameter a string s and which returns the list repeated word within the string s. Example: if s = "Python is object oriented programming language. Python is also also used for data sciences", the fuction returns the list: ['Python', 'is', 'also']

Solution

Saturday, April 17, 2021

  1. capitalize() Converts the first character to upper case
  2. casefold() Converts string into lower case
  3. center() Returns a centered string
  4. count()         Returns the number of times a specified value occurs in a string
  5. encode() Returns an encoded version of the string
  6. endswith() Returns true if the string ends with the specified value
  7. expandtabs() Sets the tab size of the string
  8. find()         Searches the string for a specified value and returns the position of where it was found
  9. format() Formats specified values in a string
  10. format_map() Formats specified values in a string
  11. index()  Searches the string for a specified value and returns the position of where it was found
  12. isalnum() Returns True if all characters in the string are alphanumeric
  13. isalpha() Returns True if all characters in the string are in the alphabet
  14. isdecimal() Returns True if all characters in the string are decimals
  15. isdigit() Returns True if all characters in the string are digits
  16. isidentifier() Returns True if the string is an identifier
  17. islower() Returns True if all characters in the string are lower case
  18. isnumeric() Returns True if all characters in the string are numeric
  19. isprintable() Returns True if all characters in the string are printable
  20. isspace() Returns True if all characters in the string are whitespaces
  21. istitle() Returns True if the string follows the rules of a title
  22. isupper() Returns True if all characters in the string are upper case
  23. join()         Joins the elements of an iterable to the end of the string
  24. ljust()  Returns a left justified version of the string
  25. lower()         Converts a string into lower case
  26. lstrip() Returns a left trim version of the string
  27. maketrans() Returns a translation table to be used in translations
  28. partition() Returns a tuple where the string is parted into three parts
  29. replace() Returns a string where a specified value is replaced with a specified value
  30. rfind()         Searches the string for a specified value and returns the last position of where it was found
  31. rindex() Searches the string for a specified value and returns the last position of where it was found
  32. rjust()         Returns a right justified version of the string
  33. rpartition() Returns a tuple where the string is parted into three parts
  34. rsplit() Splits the string at the specified separator, and returns a list
  35. rstrip() Returns a right trim version of the string
  36. split()         Splits the string at the specified separator, and returns a list
  37. splitlines() Splits the string at line breaks and returns a list
  38. startswith() Returns true if the string starts with the specified value
  39. strip()         Returns a trimmed version of the string
  40. swapcase() Swaps cases, lower case becomes upper case and vice versa
  41. title()         Converts the first character of each word to upper case
  42. translate() Returns a translated string
  43. upper()         Converts a string into upper case
  44. zfill()         Fills the string with a specified number of 0 values at the beginning

my-courses.net

Exercise 22

Write an algorithm in python that returns the list of duplicate elements of a given list without using any predefined functions in Python. Example if L = [7, 23, 5, 12, 7, 19, 23, 12, 29], the algorithm returns the list [7, 23, 12].

Solution

Friday, April 16, 2021

Exercise 12

Using the sort () method, write an algorithm in python as a function which takes as parameter a list L of numbers and which returns the couple (min, max) formed by the minimum and the maximum of the list.

Solution

def minMax(L):
     # sorting the liste
     L.sort()

     return (L[0] , L[-1])

# Exemple
L = [41, 19 , 5 , 21 ,7 , 11]

print(minMax(L)) # the out put is:  (5, 41)



Younes Derfoufi
my-courses.net

Exercise 11

Write an algorithm in python as a function which takes as parameter a tuple (L, n) formed by a list L of numbers and an integer n and which returns the list obtained from L by multiplying its elements by n . Example if L = [3, 9, 5, 23] and n = 2 the function returns the list: [6, 18, 10, 46]

Solution

Exercise 10

Write an algorithm in python as a function which takes as a parameter a tuple (L, x) formed by a list L and an element x and which returns the position of the element x in the list L. The function must return -1 if element x is not in the list.

Solution

Thursday, April 15, 2021

Exercise9

Write an algorithm in python as a function which takes as parameter a tuple (L, a) formed by a list L and an element a and which returns True if the element a is present in the list L and False if no.

Solution

def examineList (L, a):
     if a in L:
          return True
     else: return False
# Example
L = [13, 9, 5, 23]
a = 5
print (examineList (L, a)) # the output is: True


Younes Derfoufi
my-courses.net

Exercise8

Write an algorithm in python that returns the average of the terms in a list of numbers.

Solution

def averageList (L):
    # initialization of the average
    m = 0
    for x in L:
        m = m + x
    # average = sum of the elements of L / length of L
    m = m / len(L)
    return m

# Example
L = [3, 7, 8, 2]
print ("the average is: m =", averageList (L))
# the output is: the average is: m = 5.0
 
Younes Derfoufi
my-courses.net

Saturday, April 3, 2021

Source code

import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton ,  QGridLayout

def window():
    app = QApplication(sys.argv)
    win = QWidget()
    
    grid = QGridLayout()
    
    grid.addWidget(QPushButton("Button 1") , 0 , 0)
    grid.addWidget(QPushButton("Button 2") , 1 , 0)
    grid.addWidget(QPushButton("Button 3") , 0 , 1)
    grid.addWidget(QPushButton("Button 4") , 1 , 1)
    grid.addWidget(QPushButton("Button 5") , 0 , 2)
    grid.addWidget(QPushButton("Button 6") , 1 , 2)
    grid.addWidget(QPushButton("Button 7") , 2 , 0)
    grid.addWidget(QPushButton("Button 8") , 2 , 1)
    grid.addWidget(QPushButton("Button 9") , 2 , 2)  
    
    win.setLayout(grid)
    
    win.setWindowTitle("PyQt Grid Layout")
    win.setGeometry(50,50,400,200)
    win.show()
    sys.exit(app.exec_())
    
if __name__ == '__main__':
    window()


Younes Derfoufi
my-courses.net

Thursday, April 1, 2021

import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLineEdit

def onChangeText():
    Text = fieldEdit.text()
    print(Text)

app = QApplication(sys.argv) 

widget = QWidget() 

fieldEdit = QLineEdit(widget)
fieldEdit.move(70 , 20)
fieldEdit.resize(200 , 30)
fieldEdit.textChanged.connect(onChangeText)

widget.setGeometry(100,100,400,200) 
widget.setWindowTitle("QLineEdit Input Text Field !") 
widget.show()

sys.exit(app.exec_())


Younes Derfoufi
my-courses.net

Monday, March 29, 2021

import sys

from PyQt5.QtWidgets import QApplication, QWidget, QPushButton

def buttonAction():
    print("You clicked on the button !")


app = QApplication(sys.argv)
widget = QWidget()

myButton = QPushButton(widget)
myButton.setText("Click here !")
myButton.move(50 , 30)
myButton.clicked.connect(buttonAction)

widget.setGeometry(100, 100 , 320 , 200)
widget.setWindowTitle("Example of PyQt5 Button")
widget.show()
sys.exit(app.exec_())


Younes Derfoufi
my-courses.net
import sys

from PyQt5.QtWidgets import QApplication, QWidget, QLabel

def window():
   app = QApplication(sys.argv) # create a pyqt5 app
   widget = QWidget() # create Window within the app

   textLabel = QLabel(widget)  # create a label within the widget
   textLabel.setText("Hello  World   From   PyQt5 !") # adding a text to the label 
   textLabel.move(120,80)  # label dimensions

   widget.setGeometry(100,100,400,200) # window dimensions
   widget.setWindowTitle("First PyQt5") # window title
   widget.show()
   sys.exit(app.exec_())

if __name__ == '__main__':
   window()


Younes Derfoufi
my-courses.net

Sunday, February 28, 2021



Twitter has announced plans for a brand new "first rate comply with" function for you to permit account holders to fee for exceptional additional content material.
this can take the shape of extra tweets, joining a network group or receiving a newsletter, the firm said.
Twitter unveiled its plans at a digital event held for buyers.
it is the first time in a while that the platform has announced huge adjustments to the way wherein people can use it.

Friday, February 26, 2021

it-Python-courses-python-string--Python-courses-python-exercises

Exercise7 || Solution

Write a Python algorithm that returns the list of divisors of a given integer. Example if n = 18, the algorithm returns the list [1, 2, 3, 6, 9, 18]

1. Creating a Label Widget

We have already seen how to create a label in the previous tutorial by importing the Label class:
from kivy.uix.label import Label

code to display a 'Hello World!' label

from kivy.app import App 
from kivy.uix.label import Label
class myApp(App):        
    def build(self):         
        lbl=Label(text='Hello World!')         
        return lbl      
myApp().run()



1. What is kivy?

Kivy is a free and open source library for Python, useful for building touch applications with a natural user interface. This library works on Android, iOS, GNU / Linux, OS X and Windows. It is distributed free of charge and under the MIT license. Kivy is the main framework developed by the Kivy organization, in parallel with Python-for-Android2, Kivy iOS, as well as several other libraries intended to be usable on all these platforms. The framework contains all the elements to build applications and in particular:
  1. Extended input functions for the mouse, keyboard, tangible user interfaces, as well as multi-touch events generated by these different devices.
  2. a graphics library based only on OpenGL ES2, and using Vertex Buffer Objects and shaders.
  3. a wide range of widgets supporting multi-touch.
  4. an intermediate language (Kv3), to easily build custom widgets.
Python-courses-download-Python-courses-s-Python-courses

Exercise 6

Write a Python algorithm that returns the length of a given list without using the len() method.

Solution

def lenList (L):
    # initialize the length of the list
    l = 0
    # browsing through all list elements 
    for x in L:
        # length increment
        l = l + 1
    return l

# Example
L = [11, 3, 5, 8, 2]
print ("the length of the list is:", lenList (L))
# The output is: the length of the list is: 5


Younes Derfoufi
my-courses.net

Thursday, February 25, 2021

Python-courses-python-exercises-python-for-while

Exercise 5

Given a list of integers L, write a program in Python that returns the sum of the list L elements.

Solution

# creation of a function which returns the sum of the elements of a list
def listSum (L):
    # initialization of the sum of the list elements
    s = 0
    for x in L:
        s = s + x
    return s

# Example
L = [2, 1, 5, 3]
# Display the sum of the list elements:
print ("The sum of the list element is:", listSum (L))
# The output is: The sum of the list L element is: 11


Younes Derfoufi
my-courses.net

Saturday, February 20, 2021

Python-courses-python-exercises-python-sets-python-inheritance

Exercise 4

Write a program in Python that asks the user to enter 5 integers of their choice and display the list of numbers entered.

Solution

# initializing the list of numbers to enter
listNumbers = []
for i in range (0 , 5):
    n = int (input ("Type the value of an integer:"))
    # add the number n to the list
    listNumbers.append (n)
# Display the list of entered numbers:
print ("Here is the list of entered numbers:", listNumbers)


Younes Derfoufi
my-courses.net

Saturday, February 13, 2021

Setting up an upload form within a django model

It often happens that you wish to add a file field to a registration or data insertion form ... So far we have not yet dealt with this type of field. The file field type can be treated either in isolation or within a model. To keep it simple, we are going to deal with this last type. 
Let's start by creating a mysite project in which we create an application named studentsApp

 
Next, let's create a directory named media within our mysite project. This folder must be configured within the file: 

Python Exercises With Solutions

  1. Exercises on Python Strings
  2. Exercises on Python lists
  3. OOP Exercices with solutions
  4. Exercises on Python File I/O
  5. Python Dictionary Exercises
  6. Python Sets Exercises
  1. Python Arithmetic Exercises
  2. Equations & System Of Equations
  3. Polynomials and Functions
  4. Python Arithmetic Exercises 
  5. Numpy, Matplolib, Sympy , Scipy - Exercises
  6. Python Arithmetic Exercises
  1. Python GUI Tkinter Exercises



Younes Derfoufi

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) Bootstrap CSS (1) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (9) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (35) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (4) Python Reference (1) Python-Books (6) Python-DVD-Training (1) Python-Exercises (263) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates