21 November 2025
ƏmirBecause random in numpy, isn't it?
Ссылка
click to show
click to show
Why would you use something as massive as numpy for a thing that the standard library can do https://docs.python.org/3/library/random.html
anurag kumari m unable to solve specific pyton pattern problems (diamond pattern) ,
can i ask problem related to that here?
in rule no.5 (screenshot not mentioned), so can i share screenshot too?
5️⃣ Code sharing
• Be considerate!
• Try to use markdown formatting!
• For many lines (5-10+) of code, use a pasting service:
• dpaste.org
• hastebin.com
• Don't ever attach photos or videos of your screen taken with your phone camera!
anurag kumarin rule no.5 (screenshot not mentioned), so can i share screenshot too?
5️⃣ Code sharing
• Be considerate!
• Try to use markdown formatting!
• For many lines (5-10+) of code, use a pasting service:
• dpaste.org
• hastebin.com
• Don't ever attach photos or videos of your screen taken with y
No, and it is not needed, code and output is text
22 November 2025
id 922319248All.. I have been searching on Google an "easy to use" python ide.. and I did download a few and tried using.. but did not find simple and so removed.. any here can suggest me a simple and easy IDE
In my opinion, it would be more efficient to go ahead and install VSCode or PyCharm. But if you insist try online-python.com.
id 922319248All.. I have been searching on Google an "easy to use" python ide.. and I did download a few and tried using.. but did not find simple and so removed.. any here can suggest me a simple and easy IDE
You can download tonny IDE.
It's simple and easy to download
23 November 2025
Someone shared me this code pls explain :
from flask import Flask, render_template, request, redirect, url_for, flash, session, abort
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, Length
from passlib.hash import bcrypt
from datetime import datetime
app = Flask(name)
app.config['SECRET_KEY'] = 'replace-this-with-a-secure-random-string'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///progsite.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
# ---------- Models ----------
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password_hash = db.Column(db.String(255), nullable=False)
is_admin = db.Column(db.Boolean, default=False)
def verify_password(self, password):
return bcrypt.verify(password, self.password_hash)
class Problem(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(200), nullable=False)
statement = db.Column(db.Text, nullable=False)
sample_input = db.Column(db.Text, default='')
sample_output = db.Column(db.Text, default='')
created_at = db.Column(db.DateTime, default=datetime.utcnow)
class Submission(db.Model):
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
problem_id = db.Column(db.Integer, db.ForeignKey('problem.id'))
code = db.Column(db.Text, nullable=False)
verdict = db.Column(db.String(50), default='Pending')
created_at = db.Column(db.DateTime, default=datetime.utcnow)
user = db.relationship('User', backref='submissions')
problem = db.relationship('Problem', backref='submissions')
# ---------- Forms ----------
class RegisterForm(FlaskForm):
username = StringField('Username', validators=[DataRequired(), Length(min=3, m
IxhuSomeone shared me this code pls explain :
from flask import Flask, render_template, request, redirect, url_for, flash, session, abort
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField, SubmitField
from wtforms.valida
You may want to start reading flask documentation
Is not effective to just ask to explain a full program better to be more specific
For a web crawler project, which library is the best to use? Currently, I'm a beginner and it's hard for me to write the program independently without following the books. I'm currently using requests and BeautifulSoup. I'm worried that my learning method might be wrong, so I'm here to ask for advice.
scczs scczsFor a web crawler project, which library is the best to use? Currently, I'm a beginner and it's hard for me to write the program independently without following the books. I'm currently using requests and BeautifulSoup. I'm worried that my learning method might be wrong, so I'm here to ask for advic
nothing wrong, with a web crawler project you will sharpen your algorithmics thinking and when you dive deeper you might learn how internet/http/web works, control flow with concurrency/parallelism, and many more. its always better in programming if you have/know- reason for using tools/library when you decided to use it, because thats a signal that you know what you're doing.
so, which library is the best? it depends on problem you want to solve
id 7803835989I don't have idea how to do that?
You mention Django and then say that you have no idea ? 🤔
Why pick Django then ?
If you know why read through the Django documentation and quick tutorial to work on implementation.
24 November 2025
icelllOh okay, I'm just asking, we're still in contact a little bit, right?
What I meant is: there are places to talk about that or other casual stuff check offtopic group (link in the rules)