Quantcast
Channel: Python - Programmers Heaven
Browsing all 140 articles
Browse latest View live
↧

reading input doubt

how many ways we take input from the user in python

View Article


Image may be NSFW.
Clik here to view.

How do I convert a .py file to a .exe file?

I'm a beginner programmer and I was wondering how one converts a python file to an executable so when I click on it it runs automatically. Thanks

View Article


Pyc 2 py 2.2

Hi, i have to decompile python program. But i dont have got any idea how. Python version 2.2

View Article

How to fix this python code?

Hi everyone, I am writing a simple python guessing game. simply, the program asks the user to guess a number, if the number is correct, it shows a message (You win!)... if wrong, it gives the user...

View Article

import data from website & record in csv file with new sheet

Dear all, I am looking for the code where i can extract data/ copy data from photon.info/photon_site_db_solarmodule_en.photon and pasted query into csv file. if webpage refreshed data should record in...

View Article


Image may be NSFW.
Clik here to view.

How to get a response body from a http request

Hi! This is my first post, so let me know if I make any mistake! Also, it's the first time I try to develop anything web using python . Anyway, my problem: I'm tryin to develop an app that lets me know...

View Article

I'm confused about number to word conversion & pyttsx.

I am writing a python program on Windows using Python 2.7. Basically, it's a program that takes a 5-digit, negative & positive, number from user & spells it out in English using num2word or any...

View Article

django how to change fields input according to related model field

I'm trying to make a code-name(i.e: Test Post will be TP-1, TP-2 ...) thing on Django. There is news model, and post model i got. When user create news title hence post's codename will be according...

View Article


Trouble using PyInstaller on Mac

*Note: I am a very inexperienced at this. I just started using python this semester. Please bear with me when I am trying to describe things/dumb down your answers as much as you can because I don't...

View Article


Logging errors

Good afternoon. I am just learning python script for a job I have, and I've run across an error. Basically, I have a script that allows me to assign nucleotides labels and colors within pymol for any...

View Article

How do I dynamically wait for router prompt while using paramiko module in...

Hi, I am writing a program to collect show command output from Cisco routers. I am using paramiko module with python. When the command output is small there is no problem. When output is large I see...

View Article

Py package doanloadable via pip

Hello, I am new to python, I wrote a package and now I want it downloadable easily via pip, any suggestions how should I do that ? Thanks !

View Article

Image may be NSFW.
Clik here to view.

Recursion comparing

Hi, need help for 1 task in python(spyder), it says write recursive function which accepts 2 numbers and returns how many digits are different on same positions, for example for 12345 and 12547 returns...

View Article


New Programming Student- Advice for Specific Applications

I am just beginning my formal education in programming after years of pieced-together html and CSS. I have an online business in the gaming industry and am looking to become knowledgeable in specific...

View Article

Script execution error

I am working with a csv file which is in my TREES directory. The part that I think is a problem is.. <from pandas import Series, DataFrame import pandas as pd import numpy as np import os import...

View Article


Image may be NSFW.
Clik here to view.

Nested for Loop runs only once on map

Here is my code: dataset=[[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]] c1=[] for tran in dataset: for item in tran: if [item] not in c1: c1.append([item]) c1=c1.sort() D=map(frozenset,c1) for tid in...

View Article

Hi All, I'm getting problem in python selenium driver ,it is not able to...

Environment De Vkk At Testing CD Test List Test Server QQC QRM ETIC Performance System Test ODI Access Controller Server VK HD 2013 - POC Zip SQL Test Cases Tracker Test Portal </select> *...

View Article


Getting column values from multi index data frame pandas

I have a multi index data frame shown below: 1 2 panning sec panning sec None 5.0 None 0.0 None 6.0 None 1.0 Panning 7.0 None 2.0 None 8.0 Panning 3.0 None 9.0 None 4.0 Panning 10.0 None 5.0 I am...

View Article

I want to save python variable result to a mysql database

when this files run gives corresponding output values as; test BLE Scanning software jcs 6/8/2014 import MySQLdb as my import blescan import sys import bluetooth._bluetooth as bluez dev_id = 0 db =...

View Article

Need help with ASCII type box in Python

Hello, I'm trying to make an ASCII code type box (the ones you see on GameFAQs of famous logos and such) since its part of the Chapter 6 Lab for Programming Arcade Games with Pygame. Here is what I...

View Article
Browsing all 140 articles
Browse latest View live