Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Django : OperationalError no such column: Utilisateurs_videos.user_id
Post: Django : OperationalError no such column: Utilisat...

Hi, I'm struggling with a problem for a week now. I can't make a relation between the user and the uploaded video. When I get the user = models.Foreignkey off, it works but the videos are public and n...
Adem Web Scraping & Web Development 0 3,024 Mar-20-2021, 06:11 PM
    Thread: Dictionnary Issue
Post: Dictionnary Issue

Hi, little issue. Could u please tell me how to remove the {} between each number and "0" in the output of the console ? Thanks! def fonction2_bis(n,a,b): import random r= random.randint(a,b) ...
Adem Game Development 2 2,034 Nov-10-2019, 10:27 PM
    Thread: {} from dict suppressing
Post: {} from dict suppressing

Hi, little issue. Could u please tell me how to remove the {} between each number and "0" in the output of the console ? Thanks! def fonction2_bis(n,a,b): import random r= random.randint(a,b)...
Adem General Coding Help 2 1,941 Nov-10-2019, 07:47 PM
    Thread: Occurence
Post: RE: Occurence

(Nov-08-2019, 08:18 AM)perfringo Wrote: For counting hashable objects there is built-in collections.Counter. This enables counting and representing results in different ways: >>> from co...
Adem General Coding Help 3 2,682 Nov-08-2019, 03:17 PM
    Thread: Occurence
Post: Occurence

Hi, I want to print the occurence of each item . For example, you want 5 items in (1,1). Instead of printing 1,1,1,1,1 ; I want it to print 1:"5". I'm struggling with it for hours. Please could you ch...
Adem General Coding Help 3 2,682 Nov-07-2019, 10:29 PM
    Thread: IndexError: List index out of range issue
Post: IndexError: List index out of range issue

Hi, could someone help me on this code plz ? It says"IndexError: List index out of range issue" in "n = int(sys.argv[1])". btw i m using python 3.7 if it can help. import sys import numpy as np impor...
Adem General Coding Help 1 3,521 Nov-01-2019, 10:34 PM
    Thread: Issue with affecting numbers to a variable
Post: RE: Issue with affecting numbers to a variable

Thanks for helping , it s finally working!
Adem General Coding Help 3 2,288 Sep-24-2019, 07:48 AM
    Thread: Issue with affecting numbers to a variable
Post: Issue with affecting numbers to a variable

hello , i'm trying to code with python, i get little bit of problems with affecting many numbers to a variable. Can someone tell me what is the issue in my code ? How can I solve it ? Thanks for helpi...
Adem General Coding Help 3 2,288 Sep-23-2019, 08:34 PM
    Thread: dict problem with if
Post: RE: dict problem with if

thanks a lot it's working! have a nice day
Adem General Coding Help 3 2,211 Sep-21-2019, 09:13 PM
    Thread: dict problem with if
Post: dict problem with if

Hi , I have a little problem with my code , can you explain the problem to me and help to fix it please ? What should I do ? Thanks dict={"Name":"Adem", "Surname":"Ben rhouma"} if "Name"=="Adem...
Adem General Coding Help 3 2,211 Sep-21-2019, 08:55 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020