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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,242
» Latest member: johnsonlucas83
» Forum threads: 38,777
» Forum posts: 175,797

Full Statistics

Online Users
There are currently 49 online users.
» 2 Member(s) | 42 Guest(s)
Bing, Google, Apple, AOL, buran, woooee

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
4 minutes ago
» Replies: 3
» Views: 120
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
11 hours ago
» Replies: 1
» Views: 54
Data Science
Forum: Data Science
Last Post: mamta25
11 hours ago
» Replies: 3
» Views: 2,579
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 154
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 139
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 137
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,418
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,385
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,584
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 218

 
  Python 3 Function Annotations
Posted by: charlesprince - Feb-28-2017, 08:03 AM - Forum: Game Development - Replies (9)

is there any example for function annotations. function annotations not working while running a code. is there any way to make it.

Print this item

  how can i print two value in single line
Posted by: desul - Feb-28-2017, 06:01 AM - Forum: Homework - Replies (8)

Dear ALL,

how can I print two valueS in a single line 

print(k )
print(v)

MY OUTPUT SHOULD BE 

Ontology: 3



THANK YOU

Print this item

  Is Python Suitable?
Posted by: summerleas - Feb-28-2017, 04:46 AM - Forum: Data Science - Replies (3)

I don't know if Python is a suitable language for what I want to do. In summary:

Read a file of about 6GB into an array (list I presume). The array..... More

Print this item

  Loop help in game
Posted by: Kgranulo1 - Feb-28-2017, 01:16 AM - Forum: Game Development - Replies (1)

[python]import time
from tkinter import *
tk = Tk()
canvas = Canvas(tk, width=400, height=400)
canvas.pack()
rectangle = canvas.create_rectangle(..... More

Print this item

  Dealing with strings thru mmap in Python
Posted by: doublezero - Feb-27-2017, 09:07 PM - Forum: General Coding Help - Replies (4)

For learning purposes, I am trying to create a script to:
-read a list of keywords and store in a array (done)
-list files in a dir tree (done)
-re..... More

Print this item

  Python 3.6 Installed, But Doesn't Exist
Posted by: Atomike - Feb-27-2017, 08:47 PM - Forum: General Coding Help - Replies (3)

Using Windows 7. Installed Python 3.6, and it won't go. 
I'm trying to change the "Path" file thing in Windows, but I only seem to have the "Python35..... More

Print this item

  Matplotlib Doesn't Work
Posted by: Ian12290 - Feb-27-2017, 03:56 PM - Forum: Data Science - Replies (6)

Hi everyone!

I successfully downloaded both Pygame and Matplotlib on my Mac (OSX), but neither seem to work when I import them.

Matplotlib was s..... More

Print this item

  how to remove none from the for loop
Posted by: desul - Feb-27-2017, 01:30 PM - Forum: General Coding Help - Replies (5)

Dear all,

c= " domain ontologies"

mystr = c.split(' ')   
   
  c= [i for i in mystr[:1]]
        
 print(c)
result 
[outpu..... More

Print this item

  ImiportError class not defined
Posted by: iFunKtion - Feb-27-2017, 01:08 PM - Forum: GUI - Replies (4)

Hi there,

I have an application of which the file structure is as follows each file holds but one class, and that class is the name of the file:
[py..... More

Print this item

  [split] Script has stopped working
Posted by: santhosh - Feb-27-2017, 01:07 PM - Forum: General Coding Help - Replies (1)

hello everyone i am using this script  for mail sending it will sending through gmail but i am  unable to send through my office mail (smtp) i am send..... More

Print this item

  PyQT4 only upper case text
Posted by: iFunKtion - Feb-27-2017, 12:18 PM - Forum: GUI - Replies (1)

Hi there,

Due to the nature of our company font, we never ever want to use it lowercase. Is there a way of making absolutely every bit of text in a..... More

Print this item

  Implementation Pyramid Solitaire
Posted by: qwerty - Feb-27-2017, 11:16 AM - Forum: Homework - Replies (2)

You must create a class map to represent a playing card in the pyramid.
Create a class deck for submission deck of cards in the pyramid.
Here's the ..... More

Print this item

  how to calculate a maximum frequency of theterm in docuemnt
Posted by: desul - Feb-27-2017, 08:47 AM - Forum: General Coding Help - Replies (5)

Dear ALL,

how to retrieve  most occurred  term in the document 


words= [word for word in document ]

word_count = counter(words)

then wha..... More

Print this item

  Worker thread?
Posted by: micko - Feb-27-2017, 07:54 AM - Forum: General Coding Help - Replies (1)

My program does the following:
SQL query results based on GUI (user filled) data is passed to TCPprinter thread in arguments. I'm using threading be..... More

Print this item

  Buy used Python Cookbook 2nd edition though learning Python 3.6?
Posted by: Raptor88 - Feb-27-2017, 05:26 AM - Forum: General Coding Help - Replies (3)

I'm learning Python using version 3.6. 

I can buy a used copy of the "Python Cookbook" 2nd edition for $6.00 including shipping.  But that's via m..... More

Print this item

  calculating length of string
Posted by: desul - Feb-27-2017, 04:46 AM - Forum: General Coding Help - Replies (12)

Dear All,

how can I calculate the length of the string, for e.g

   len(ontology)= 8

but I need it should return 1..... PLEASE TELL ME ANY COM..... More

Print this item

  RAW IO disk access for SD Card
Posted by: shift838 - Feb-27-2017, 03:16 AM - Forum: General Coding Help - Replies (1)

I want to create a python program that will allow a user to read RAW data of sections of an SD card based on start and end sectors then dump it to an ..... More

Print this item

  getting source line number
Posted by: Skaperen - Feb-27-2017, 02:34 AM - Forum: General Coding Help - Replies (4)

is there a way to get the source file line number in some code?  for example:

[python]from __future__ import print_function

# print a message wi..... More

Print this item

  How do I install small size pygtk3
Posted by: harun2525 - Feb-27-2017, 12:53 AM - Forum: GUI - No Replies

hello, i work on pygtk3 but my ptgtk3 module is 200-300 mb. how can i install small size pygtk3 instead of my installed pygtk3 for packaging my progra..... More

Print this item

  Syntax error
Posted by: rsidhu - Feb-27-2017, 12:12 AM - Forum: General Coding Help - Replies (2)

Hi. Trying to learn python using 3.6.0 and having an issue with the print function. 

Using this:
[python]i=1
while i<=5:
           print(i)
  ..... More

Print this item

  Python Hash list check
Posted by: here2learn - Feb-26-2017, 04:17 PM - Forum: General Coding Help - Replies (4)

Hi All, 

First post!

I'm Looking for a bit of help with a small task. 


I am pretty new to python and have a program which generates a list ..... More

Print this item

  Negative lookahead not working, help please
Posted by: MitchBuchanon - Feb-26-2017, 01:48 PM - Forum: General Coding Help - Replies (8)

Hi everyone,

So here is my problem. I have a bunch of tweets and various metadata that I want to analyze for sociolinguistic purposes. In order to ..... More

Print this item

  dxfgrabber-return lines start point
Posted by: elhetch - Feb-26-2017, 11:56 AM - Forum: General Coding Help - Replies (3)

Hi 
i wrote the below code to return the start point of the lines in drawing, but it return error:

[python]
import dxfgrabber
dwg = dxfgrabber.readfi..... More

Print this item

  Importing file in dataframe and populating missing column name
Posted by: vvv - Feb-26-2017, 10:21 AM - Forum: General Coding Help - Replies (1)

Hi All,

I am trying to import a survey data on hotel industry . First 2 columns have name and rest of the column doesn't have .I need to populate y..... More

Print this item

  seprating columns of an listbox item and putting them into different entry
Posted by: gray - Feb-26-2017, 07:21 AM - Forum: GUI - Replies (2)

i want to get a selected item from listbox created bu a sql database and seprate 'id1', 'firs1' & 'las1' (columns of a sql table) and then put every o..... More

Print this item

  Interesting observation on MySQL
Posted by: Larz60+ - Feb-26-2017, 03:38 AM - Forum: Bar - Replies (19)

I'm reading a book on PostGIS, and found this paragraph quite humorous, as it
fits my thoughts perfectly:


[quote]
MySQL h..... More

Print this item

  i would like to see an edit button to clear formatting.
Posted by: Skaperen - Feb-26-2017, 03:32 AM - Forum: Board - Replies (2)

i would like to see an edit button to clear formatting.

Print this item

  Pyximport
Posted by: tdow6478 - Feb-25-2017, 11:41 AM - Forum: General Coding Help - No Replies

Has anyone experimented with this module? It is supposed to substantially speed up code by compiling Python to C. I did not see much evidence of speed..... More

Print this item

  how to add smilar size python interpreter to my program.
Posted by: harun2525 - Feb-25-2017, 10:56 AM - Forum: General Coding Help - Replies (7)

hello guys, i want add python interpreter (small size) to my program because i dont want convert executable to my program. why dont ı want convert ? b..... More

Print this item

  simulating sum function on LIST
Posted by: vvv - Feb-25-2017, 06:41 AM - Forum: General Coding Help - Replies (2)

Hi All,

I am a newbie to python. Trying to simulate the sum function to add all the values in a LIST
[python]#list 
orig= [1,2,3,4,5]

#functio..... More

Print this item

  Integer Operator in If Statements
Posted by: warmth - Feb-25-2017, 03:55 AM - Forum: Homework - Replies (13)

[python]x=int(input("Enter 1st"))
y=int(input("Enter 2nd"))
a=0
if x>y and x<0:
        a=-x
if x>y and x>0:
        a=x
if y>x and y<0:
        a=-y
..... More

Print this item

  optical disk drive class action settlement
Posted by: metulburr - Feb-25-2017, 03:41 AM - Forum: Bar - Replies (6)

http://www.freebieshark.com/2017/02/opti...tates.html

Print this item

  Extracting data from tweets and saving it as CSV
Posted by: kiton - Feb-24-2017, 10:17 PM - Forum: General Coding Help - Replies (7)

Hello! I am new to the programming and learn everything in Python from scratch. 

My goal is to (1) import tweets from a JSON file, (2) pull out the..... More

Print this item

  Scapy Beacon Frames
Posted by: peterkl - Feb-24-2017, 09:03 PM - Forum: Networking - Replies (1)

I'm trying to build a scapy program that scans for Beacon Frames. Every router should send beacon frames to the air in an interval of X milliseconds s..... More

Print this item

  PyUSB Problem: Failed Commands and Timeout Without Data
Posted by: ssstreet - Feb-24-2017, 08:30 PM - Forum: General Coding Help - No Replies

Hi all,
 
[font=Cali..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 4 minutes ago tsgiannis woooee GUI
  [split] print two differe... 11 hours ago Reema Gribouillis General Codin...
  Data Science 11 hours ago Oshadha mamta25 Data Science
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
Most views
  The best Prog... 578741
  Tutorial Requ... 509467
  Web Scraping ... 441876
  Newbie with P... 385841
  New Users Int... 375418
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
johnsonlucas83 Today
ColorTig Today
AcoolPurpleOne1863 Today
racingsubby Today
Reema Today

User Panel Messages

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