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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,994
» Latest member: Jacobjoift
» Forum threads: 38,736
» Forum posts: 175,583

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 36 Guest(s)
Google, Bing, AOL, Jacobjoift

Latest Threads
Cannot update or install ...
Forum: General Coding Help
Last Post: Jacobjoift
Less than 1 minute ago
» Replies: 7
» Views: 237,868
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
6 hours ago
» Replies: 4
» Views: 132
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
Today, 08:57 AM
» Replies: 1
» Views: 80
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,544
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 105
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 231
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,055
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 469
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,101
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,178

 
  Beginner Question - Esaping the Escape Character correctly?
Posted by: Bramen - Aug-26-2019, 04:34 PM - Forum: General Coding Help - Replies (4)

I am working on some basic programming homework, a calculator. The code is below.

I would like for the user to be able to input / or \ for division..... More

Print this item

  How to drop column in pandas
Posted by: SriMekala - Aug-26-2019, 02:10 PM - Forum: Data Science - Replies (3)

Hi,
I have below DataFrame,

[python]Group Category Subject AC1 AC2 AC3 BM1 BM2 NJ1 NJ2 NJ3
Va Vb ..... More

Print this item

  find nearest number
Posted by: d3fi - Aug-26-2019, 01:22 PM - Forum: General Coding Help - Replies (7)

so first here is my code.

[python] elif medicin in ("adrenalin", "ad"):
vaegt = int(input("Hvad vejer patienten? ")) #what does the pa..... More

Print this item

  Splitting String into 2d list
Posted by: cclark135 - Aug-26-2019, 12:40 PM - Forum: General Coding Help - Replies (2)

I have a sample list of data as follows

'762-69-7639,Aime,Gentzsch,12ALT,ENG LIT,MUSIC,PSYCHOL
359-53-2130,Marrick,Spinelli,12POL,MATHS,COMPSCI,PH..... More

Print this item

  Getting error when I run code more than two times
Posted by: Clnprof - Aug-26-2019, 11:45 AM - Forum: News and Discussions - Replies (5)

I'm trying to scrape several web sites with a code. I could scrape 2 sites but now code doesn't work. It show me "NameError: name 'inf_rest_name' is n..... More

Print this item

  lambda layer size issue
Posted by: lambdabeginer - Aug-26-2019, 11:31 AM - Forum: General Coding Help - Replies (1)

Hi all,
I was working with webscraping by Goose and beautiful soup.
Extract the content and upload the urls to dynamodb and the content to Elasticse..... More

Print this item

  Vectorizing using numpy
Posted by: pythonhelp - Aug-26-2019, 09:03 AM - Forum: General Coding Help - No Replies

I'm relatively new to Python and have the following Python code. This code actually reads every line from a .csv file and does some actions.

I have..... More

Print this item

  Class defining
Posted by: squillam - Aug-26-2019, 07:00 AM - Forum: Homework - Replies (3)

[Image: 6mS2yzL]

No idea what it means by "call the getname function"

How is this question answerable?

Print this item

  problem in dictionary .get()
Posted by: roseojha - Aug-26-2019, 05:00 AM - Forum: General Coding Help - Replies (5)

Hey.. I was writing the code for calculating protein net charge
when I am providing in input the available keys it is working fine.. However, when ke..... More

Print this item

  problem in loop
Posted by: roseojha - Aug-26-2019, 04:09 AM - Forum: General Coding Help - Replies (3)

Hey guys..
I wanted to have a loop from list of tuples where i can extract name of husband by giving name of wife..
I got that ... but when I am try..... More

Print this item

  how to dynamically add label to pyqt window
Posted by: Joongi - Aug-26-2019, 03:24 AM - Forum: GUI - Replies (3)

I need to be able to dynamically add an object like a label to my window. How do I do that? Here is the code that I have.

[python]
import random
..... More

Print this item

  Is that possible to have a new feature: dynamic return with using function argument
Posted by: kouui - Aug-26-2019, 03:16 AM - Forum: News and Discussions - Replies (2)

In python 3.8, we will have a new syntax := that could assign values to variables as part of larger expression, for example,
[python]
if (n:=len(a..... More

Print this item

  Chat (Client-Server)
Posted by: andresdrr - Aug-26-2019, 12:52 AM - Forum: Networking - Replies (3)

Hi guys. I have the following code (in Python 3.7.3):

[python]##############################################################..... More

Print this item

  function vs argument
Posted by: millpond - Aug-26-2019, 12:01 AM - Forum: Homework - Replies (2)

I am trying to wrap my head around a piece of code from a text. Its a prelude to decorators, and apparently crucial to an understanding of them. But t..... More

Print this item

  python command (2 and 3) ignores extra -c arguments
Posted by: Skaperen - Aug-25-2019, 10:35 PM - Forum: News and Discussions - Replies (4)

both the python3 and python2 commands (at least in Ubuntu 18.04) takes (or ignores) an extra -c argument and only executes the first one. it should g..... More

Print this item

  print a list strings is fast but printing the joined strings is slow
Posted by: Skaperen - Aug-25-2019, 10:23 PM - Forum: News and Discussions - Replies (9)

i did the following:

Output:
>>> a=['01'[len(repr(chr(x)))==3] for x in range(1114112)] >>> b=''.join(a)
then i did [inline]print(a)[/inli..... More

Print this item

  Calculate using Python
Posted by: HoustonM11 - Aug-25-2019, 08:27 PM - Forum: Homework - Replies (2)

Hey guys, I just started my first python course and I'm having a bit of trouble figuring out this calculation. I assume its pretty simple but we didn'..... More

Print this item

  What shall I do with python
Posted by: Vqlk - Aug-25-2019, 06:41 PM - Forum: General Coding Help - Replies (1)

Alright, so I have just hit my teens and love python. I love coding. I have done basic text apps using pycharm editor and just using text. I now all t..... More

Print this item

  Python 3 crash course
Posted by: james_newbie - Aug-25-2019, 05:40 PM - Forum: General Coding Help - Replies (6)

i have made this code

[python]first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
print(f"Hello, {full_name.title..... More

Print this item

  Spyder/Anaconda can't import objects from Vpython module
Posted by: AntonRuscov - Aug-25-2019, 05:20 PM - Forum: Data Science - No Replies

Does anyone know how to deal with not being able to call VPython objects from the module?
I am trying to learn how to use VPython to produce 3D grpah..... More

Print this item

  Humble Bundle 14 Python ebooks for 15$
Posted by: ThomasL - Aug-25-2019, 05:17 PM - Forum: News and Discussions - No Replies

Please have a look here https://www.humblebundle.com/books/python-programmi[url=https://python-forum.io/thread-20685.html]..... More

Print this item

  How to change working directory in Jupyter Notebook?
Posted by: rajeev1729 - Aug-25-2019, 05:11 PM - Forum: Data Science - Replies (2)

How to change working directory in Jupyter Notebook?
tried these all but not work.

Open cmd prompt (or Anaconda Prompt), then type 'jupyter no..... More

Print this item

  Is it possible to have an index (e.g., for a list) start at 1 instead of 0?
Posted by: Exsul - Aug-25-2019, 04:36 PM - Forum: News and Discussions - Replies (4)

Is it possible to have an index (e.g., for a list) start at 1 instead of 0?

Print this item

  Random Python Feature
Posted by: ichabod801 - Aug-25-2019, 02:50 PM - Forum: News and Discussions - Replies (1)

I'm working on an interface where the user selects functions. But some of those functions are meta-functions that create the function you want. But th..... More

Print this item

  Formula works for one row does not for two
Posted by: Prometheus - Aug-25-2019, 02:37 PM - Forum: Data Science - Replies (4)

Hi

Trying to extract the core of the problem, I have found that a formula works for one row only, if another row is added, an error shows:
cannot con..... More

Print this item

  Code scrape more than one time information
Posted by: Clnprof - Aug-25-2019, 12:57 PM - Forum: General Coding Help - Replies (5)

I'm beginner in python and webscraping. My objectif was to scrape 30 reviews from a tripadvisor restaurant. But when I open the file I have 301 review..... More

Print this item

  String + Number from List
Posted by: BollerwagenIng - Aug-25-2019, 10:38 AM - Forum: General Coding Help - Replies (5)

I have a string and a list with numbers.

myString = ("go ")

myList = [1, 2, 3, 4]
And I want that output:
[output]
go 1
..... More

Print this item

  Recognize text from number plate
Posted by: Sheheryar - Aug-25-2019, 10:00 AM - Forum: Data Science - Replies (4)

Hello, I am beginner in python development and data sciences and i am doing project of recognize number plate i have been trained own tensorflow model..... More

Print this item

  Checking number in a list to see if they are beside each other
Posted by: Allaye - Aug-25-2019, 09:33 AM - Forum: General Coding Help - Replies (5)

[python]List1 =[2,3,4,9,9,5,1]
def checkList(List1):
for i in range(len(List1 - 1)):

if List1[i] == 9 and List1[i+1] == 9:
..... More

Print this item

  Problem with arguments in route function.
Posted by: darktitan - Aug-25-2019, 09:00 AM - Forum: Web Scraping & Web Development - Replies (2)

I need to have two arguments in my search_results2 function but it keeps saying missing 1 required positional argument. I have no idea what to do with..... More

Print this item

  Problem using input in Dictionary.. Help
Posted by: roseojha - Aug-25-2019, 08:15 AM - Forum: General Coding Help - Replies (1)

Hey.. I am trying to calculate protein weight using dictionary where weight is given for each amino acid
As and input I am giving = AALI which should..... More

Print this item

Sad [Learning] 3 hours for one simple exercise
Posted by: KoFu - Aug-25-2019, 02:01 AM - Forum: Homework - Replies (7)

Hi there, I'm currently working as an Analysts of a System of a bank, so I don't program there but I know a little bit (barely to get in).
I started ..... More

Print this item

  Basic Time Complexity Help
Posted by: Adakip - Aug-25-2019, 12:28 AM - Forum: General Coding Help - Replies (1)

Hello Everyone,

This is my first post so if do manage to do something incorrectly please let me know. The question i have is regarding time complex..... More

Print this item

  how do i get y to be recognized in this comprehension?
Posted by: Skaperen - Aug-24-2019, 11:15 PM - Forum: General Coding Help - Replies (5)

how do i get y to be recognized in this comprehension?

[output]Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [..... More

Print this item

  parenthesis around a tuple of literals in a for
Posted by: Skaperen - Aug-24-2019, 11:02 PM - Forum: General Coding Help - Replies (2)

is parenthesis required around a tuple of literals in a for?

i'm running into this:

[output]>>> for x in 1,2,3:
... print(x)
...
1
2
3
..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Cannot update or install ... Less than 1 minute ago nickystixx45 Jacobjoift General Codin...
  print does not open conso... 6 hours ago Tycho_2025 Axel_Erfurt General Codin...
  Weird failure in Selenium Today, 08:57 glestwid Larz60+ General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
Most views
  The best Prog... 577490
  Tutorial Requ... 501425
  Web Scraping ... 441111
  Newbie with P... 385164
  New Users Int... 369955
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Jacobjoift Today
lauren557 Today
maribita Today
AnalystRobert Today
Safariscampoea Today

User Panel Messages

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