You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote and explain where and why you are stuck... as simple as that
Читать полностью…Please, Is going to college necessary to learn Python or programming stuff like that
Читать полностью…https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…As I understood android doesn't support all libraries for Python, maybe for learning it will be enough?
Читать полностью…If you need help, don't just say "not working", explain in detail what's not working the way you expect it to.
Читать полностью…Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase.
Python groups in other languages
(⚠️Not managed by us ‼️)
Amharic @python_amharic
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisraelHindi @pyhindi_ot
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an active and well managed group that you want to be listed there, ask in the Meta group, link in the rules page.
import string
def excel_column_number(column_label):
return string.ascii_uppercase.index(column_label) + 1
class User(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
full_name: str | None = Field(default=None)
user_id: int = Field(default=None, unique=True, index=True)
Python is very sensitive to whitespace (spaces)
Be sure to indent everything in function body
And un-indent everything else
Like this
#create a module that will take 2 tuples as parameters and swap their values.Читать полностью…
def abc(Y,Z):
Y,Z=Z,Y
return(Y,Z)
a=(1,"pink",250)
b=(2,"blue",180)
print(abc(a,b))
Someone to help me with my function?
Well here I made a password containing alphanumeric characters also symbols...
Now the problem I want my password to take into account at least 2 or 3 limit symbol + alphanumeric characters for this I tried to use count(i) on the symbols finally to limit the number of symbols but support when when I concatenate them, that is to say alphanumeric + count(i) of symbols the problem does not consider the alphanumeric but only the count(i) of symbols...
Afterwards I don't know if we should use mathematical language on all this going through the limits Anyone have an idea?
hi python family i am new to python what book do you recommend
is it necessary to learn the methods by heart? example .count .title .upper
Читать полностью…Hey guys, is there any meaning to use Python on android ? Or Android cant replace PC for using Python?
Читать полностью…some of you,i really dont have a clue why this is not working
Читать полностью…def excel_column_number(column_label):Читать полностью…
column_number = 0
for i, char in enumerate(reversed(column_label)):
column_number += (string.ascii_uppercase.index(char) + 1) * (26 ** i)
return column_number
I wrote a python logger program and ran it and wrote the letters and it kept showing key key key can you help me
Читать полностью…Ideas for projects
Beginner Projects
🔹 Calculator
🔹 To-Do List
🔹 Number Guessing Game
🔹 Basic Web Scraper
🔹 Password Generator
🔹 Flashcard Quizzer
🔹 Simple Chatbot
🔹 Weather App
🔹 Unit Converter
🔹 Rock-Paper-Scissors Game
Intermediate Projects
🔸 Personal Diary
🔸 Web Scraping Tool
🔸 Expense Tracker
🔸 Flask Blog
🔸 Image Gallery
🔸 Chat Application
🔸 API Wrapper
🔸 Markdown to HTML Converter
🔸 Command-Line Pomodoro Timer
🔸 Basic Game with Pygame
Advanced Projects
🔺 Social Media Dashboard
🔺 Machine Learning Model
🔺 Data Visualization Tool
🔺 Portfolio Website
🔺 Blockchain Simulation
🔺 Chatbot with NLP
🔺 Multi-user Blog Platform
🔺 Automated Web Tester
🔺 File Organizer
import string
def excel_column_number(column_label):
return string.ascii_uppercase.index(column_label) + 1