Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,628
» Latest member: Kamati
» Forum threads: 37,387
» Forum posts: 169,901

Full Statistics

Online Users
There are currently 387 online users.
» 1 Member(s) | 380 Guest(s)
Bing, Google, Applebot, Baidu, Yandex, Kamati

Latest Threads
match case
Forum: Code sharing
Last Post: DeaD_EyE
25 minutes ago
» Replies: 1
» Views: 66
Right way to open files w...
Forum: General Coding Help
Last Post: Gribouillis
1 hour ago
» Replies: 1
» Views: 25
Loop through all files in...
Forum: General Coding Help
Last Post: DeaD_EyE
1 hour ago
» Replies: 9
» Views: 166
Volume label
Forum: Bar
Last Post: DPaul
2 hours ago
» Replies: 1
» Views: 52
TypeError: Diagram.render...
Forum: Code Review
Last Post: sachin1361
3 hours ago
» Replies: 0
» Views: 35
Understand Named Tuples
Forum: Tutorial Requests and Submissions
Last Post: main
9 hours ago
» Replies: 0
» Views: 49
dict.setdefault()
Forum: Code sharing
Last Post: main
10 hours ago
» Replies: 0
» Views: 53
FutureWarning: The behavi...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 09:51 PM
» Replies: 12
» Views: 233
Add NER output to pandas ...
Forum: Data Science
Last Post: dg3000
Yesterday, 08:14 PM
» Replies: 0
» Views: 42
Made a discord bot game t...
Forum: General Coding Help
Last Post: Dmcsdiscord
Yesterday, 02:27 PM
» Replies: 1
» Views: 127

 
  Running simple flask - getting 404
Posted by: beginner1 - Oct-25-2019, 12:42 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

Have a file called hello.py saved to D: drive as below.

[python]
from flask import Flask

app = Flask(__name__)

@app.route("/")
def h..... More

Print this item

  Capitalize first letter of names in nested loops
Posted by: student_of_python - Oct-25-2019, 09:52 AM - Forum: Homework - Replies (9)

Hi guys,

I got this:

names=[['peter','jack','bo'],'eva',['christian','joanne',7],'5']
#Make all names in nested loop above with capital first l..... More

Print this item

  Extracting elements in a list to form a message using for loop
Posted by: Tony04 - Oct-25-2019, 08:56 AM - Forum: Homework - Replies (2)

Hello, I'm trying to make a function that will extract letters from a text document to reveal a secret message. I'm stuck at the at the for loop. It s..... More

Print this item

  Help with Plotting Histogram
Posted by: Shimmy - Oct-25-2019, 06:46 AM - Forum: General Coding Help - Replies (1)

I was wondering whether some Python experts which can help me out with generating the histograms. I'm relatively new to Python and all help is welcome..... More

Print this item

  getting the value being tested
Posted by: Skaperen - Oct-25-2019, 06:24 AM - Forum: News and Discussions - Replies (1)

is there any possible way to combine an assignment and an elif test of a value obtained from a function call that is not to be repeat..... More

Print this item

  Finetuning GPT-2 twice for particular style of writing on a particular topic
Posted by: regstuff - Oct-25-2019, 04:39 AM - Forum: News and Discussions - No Replies

Sorry if this is a stupid question. I'm just starting out in NLP and am working with gpt-2 for text generation.

My situation is that I have to gene..... More

Print this item

  Best framework for WebAPI
Posted by: jesssajan - Oct-25-2019, 12:57 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all,

we are planning to build Web API project using python. any suggestion for web framework?

Print this item

  quick function to get indentation level
Posted by: Skaperen - Oct-25-2019, 12:48 AM - Forum: News and Discussions - Replies (1)

i'm reading in a series of lines. it might be better to think of this as iterating over an iterator of lines. the lines may be indented just like r..... More

Print this item

  Find Average of User Input Defined number of Scores
Posted by: DustinKlent - Oct-24-2019, 11:53 PM - Forum: General Coding Help - Replies (1)

I am attempting to write a short practice script that finds the average of a user defined number of scores.

Here is the code I have:

[python]
..... More

Print this item

  is Path.samefile() always commutative?
Posted by: Skaperen - Oct-24-2019, 11:42 PM - Forum: News and Discussions - Replies (1)

is Path.samefile() always commutative? the documentation does not say. if both are symlinks, each pointing somewhere else, i'd think it would have t..... More

Print this item

  Inaccurate result when a vector is divided by a matrix
Posted by: FromTheColdNorth - Oct-24-2019, 10:24 PM - Forum: General Coding Help - Replies (3)

I'm relatively new in Python, I did a lots of programs in Octave but now try to transfer them in PyThon.
One of my program divide a vector by a matri..... More

Print this item

  Windows Vista
Posted by: fpefpe - Oct-24-2019, 09:34 PM - Forum: News and Discussions - No Replies

What version of python 3 can I install on vista? 3.8.0 crashed during the install -- I did not see any info in the
download page about system requ..... More

Print this item

  Sending data post to wsgiref
Posted by: JohnnyCoffee - Oct-24-2019, 09:04 PM - Forum: Web Scraping & Web Development - No Replies

Hi,

I am using the Wsgiref module to handle data entry through the GET method how can I handle getting data from a form via the POST method ?

Print this item

  f-strings and backslashes
Posted by: newbieAuggie2019 - Oct-24-2019, 06:46 PM - Forum: General Coding Help - Replies (5)

Hi!

If I run this:

[python]string5 = '''Dear Alice,
How have you been? I am fine.
There is a container in the fridge
that is labeled "Milk Ex..... More

Print this item

  Python 3.8 or 3.? Trouble installing packages
Posted by: dn237 - Oct-24-2019, 05:45 PM - Forum: General Coding Help - Replies (5)

I have been working on writing a trading bot in PyCharm lately. I was getting close to finishing then Python and/or Pip updated so after seeing a sugg..... More

Print this item

  Retrieving items from JSON
Posted by: bazcurtis - Oct-24-2019, 05:31 PM - Forum: General Coding Help - Replies (12)

Hi,

I am very new to Python and I apologise if I am asking this wrong. I have retrieved a list of tenants via the API I am trying to use. I need to..... More

Print this item

  Python PIL cutting off text.
Posted by: DreamingInsanity - Oct-24-2019, 04:51 PM - Forum: General Coding Help - Replies (3)

I have created a little script that generates a small image in PIL. It has a gradient background and two sets of text written on it, that is gotten fr..... More

Print this item

  Function not working
Posted by: eglaud - Oct-24-2019, 03:26 PM - Forum: General Coding Help - No Replies

Hello,

I am creating code that will allow the user to (manually) paste a list of excel cells and return a list that lacks quotation marks and duplica..... More

Print this item

  plot multiple employee sales data in a single graph
Posted by: pitanshu - Oct-24-2019, 01:56 PM - Forum: General Coding Help - No Replies

Hello Folks

I am not able to proceed to plot multiple employee data in a single graph. Please suggest and I would be great-full.

I have the foll..... More

Print this item

  #'ing out several lines in Atom
Posted by: Mark17 - Oct-24-2019, 01:47 PM - Forum: General Coding Help - Replies (2)

I use Atom text editor, which seems to be familiar with Python when I save a file as .py .

Is there a way to highlight several lines of code and in..... More

Print this item

  Grid Studio
Posted by: buran - Oct-24-2019, 01:42 PM - Forum: News and Discussions - Replies (1)

Just landed on this page
https://medium.com/@alextrolese38/how-i-...03a6fd2a54
It looks..... More

Print this item

  Verify if .docx table of contents is updated as per document sections or not
Posted by: vintysaw - Oct-24-2019, 12:01 PM - Forum: General Coding Help - No Replies

Problem Statement: Verify if the Microsoft docx word document Table of Content is updated according to all Headings and sections available in the docu..... More

Print this item

  first try with python class, suggestion for improvement please
Posted by: anna - Oct-24-2019, 11:03 AM - Forum: General Coding Help - Replies (18)

Hi All,

this is my first script with python class. Thanks all forum admin.

I have few questions
1) is it good practice to have multiple class i..... More

Print this item

  How do objects work?
Posted by: pyThon_ - Oct-24-2019, 08:56 AM - Forum: General Coding Help - Replies (12)

How do objects work in python? For example:

x = 5
Is 5 the object which x refers to or is there an object in memory t..... More

Print this item

  Timed images
Posted by: menator01 - Oct-24-2019, 07:34 AM - Forum: General Coding Help - No Replies

I've been following a tutorial on youtube "buildwithpython" on a spaced invaders game. tutorial went great leaning alot. I've been tweaking and experi..... More

Print this item

  how to iterate through a divs tag
Posted by: yokaso - Oct-24-2019, 07:30 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi
i would like to get an idea on how can i iterate through DIVs in code to get some data from each DIV.
my example is an amazon page results and wo..... More

Print this item

  How to hire best Python Developers for Website Development?
Posted by: johncook3245 - Oct-24-2019, 06:29 AM - Forum: Jobs - Replies (5)

I need a Python Developer, who has a good knowledge and high experience to develop a website with python.

Print this item

  run my script in a spefic version or any later one
Posted by: Skaperen - Oct-24-2019, 03:30 AM - Forum: News and Discussions - Replies (17)

in a POSIX system (i'm using Xubuntu 18.04 LTS) i can choose whether my script runs on python2 or python3 at the first line ... the #! line. i can ev..... More

Print this item

  open /dev/null or equivalent, portably
Posted by: Skaperen - Oct-24-2019, 02:25 AM - Forum: News and Discussions - Replies (1)

i would like to open a file to write to "/dev/null", or the equivalent, in a portable way. is there something that can cut this short and not even do..... More

Print this item

  Flask email hookup for password reset
Posted by: Larz60+ - Oct-24-2019, 01:58 AM - Forum: Web Scraping & Web Development - No Replies

I have all of the Flask code necessary to verify a users password change request, using gmail. However, when I attempt a test of the code, as soon as ..... More

Print this item

  [pygame] Moving an object at angles
Posted by: SheeppOSU - Oct-24-2019, 01:40 AM - Forum: Game Development - Replies (3)

I did all the code for moving at angles. I made it so that rotating to the right, it goes up to 359 and then 360 is 0. I have a slight problem that I ..... More

Print this item

  homeless - a GAME
Posted by: ronblue77 - Oct-24-2019, 12:55 AM - Forum: Code sharing - No Replies

hello everyone...

here is my other game "homeless - surviving the street" a scenario text based game where you as the player have to survive being ..... More

Print this item

  How do I get the tangent of a degree
Posted by: SheeppOSU - Oct-24-2019, 12:32 AM - Forum: General Coding Help - Replies (3)

I was trying to get the tangent of a degree, but math.tan returns the radian. How do I get the tangent of a degree? I hope I worded that right.


..... More

Print this item

  guess my number GAME
Posted by: ronblue77 - Oct-24-2019, 12:18 AM - Forum: Code sharing - Replies (2)

hello everyone... Smile

here is a simple game of guessing a number from 0 to 100
you can guess computer number or have computer guess your n..... More

Print this item

  Perminantly saving user inputs + being able to retrieve it
Posted by: ThatOneGuyNoOneKnowsCodes - Oct-23-2019, 10:46 PM - Forum: General Coding Help - Replies (1)

To whom it may concern,

Good afternoon, I have recently started a side project of mine to see how far I could stretch my knolage in python and I hi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  match case 25 minutes ago main DeaD_EyE Code sharing
  Right way to open files w... 1 hour ago Winfried Gribouillis General Codin...
  Loop through all files in... 1 hour ago Winfried DeaD_EyE General Codin...
  Volume label 2 hours ago DPaul DPaul Bar
  TypeError: Diagram.render... 3 hours ago sachin1361 sachin1361 Code Review
  [Intermediate] Understand... 9 hours ago main main Tutorial Requ...
  dict.setdefault() 10 hours ago main main Code sharing
  FutureWarning: The behavi... Yesterday, 21:51 sawtooth500 deanhystad General Codin...
  Add NER output to pandas ... Yesterday, 20:14 dg3000 dg3000 Data Science
  Made a discord bot game t... Yesterday, 14:27 Dmcsdiscord Dmcsdiscord General Codin...
  What does .flush do? How ... Yesterday, 13:15 Pedroski55 snippsat General Codin...
Most views
  The best Prog... 407546
  Web Scraping ... 299031
  Tutorial Requ... 289778
  Newbie with P... 248547
  Thread remain... 230348
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11871
buran 8090
snippsat 7084
deanhystad 6211
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Kamati Today
LauraTanner Today
main Yesterday
dg3000 Yesterday
FortuneCoins Yesterday

User Panel Messages

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