Questions tagged as 'python'

0
answers

Car rental, python have more than one car available

Thanks to the response of @ aeportugal, I have solved the inconvenience of checking if a car is available again to rent, now to do it with 2 or more cars, the level of complexity goes up. This application simulates a system for renting vehicl...
asked by 17.10.2018 / 01:26
3
answers

how to iterate in a dataframe with loop for

I have a list I'm trying to iterate with a for loop in a dataframe to query a data in a webservice: value=[] for i in range(0, 10): nit = mydataset_df.CO_tin_no url = 'http://www.rues.org.co/RM/ConsultaNIT_json' headers,...
asked by 16.10.2018 / 23:44
0
answers

I have problems with scrapy in anaconda 3

I'm trying to use scrapy in anaconda 3 over windows 10, more specifically in spider. Scrapy as such, it is installed and when I have to import it or create the classes of the examples that I see on the internet, it works perfectly. Now when I t...
asked by 23.10.2018 / 05:26
1
answer

python, roulette game

In the game of roulette there are many ways to bet, one of which is to bet on the red or black number. This is a simulation with probabilities a random number for said probability. On my roulette table there are red, black and green colors, to e...
asked by 23.10.2018 / 05:51
2
answers

How to print line number 10 after each special character '\ x0c' found in the file with Python

Good, I have the following text '\x0c' texto largo largo 10 lineas despues 900900 texto largo texto largo '\x0c' texto largo largo 10 lineas despues 900901 texto largo texto largo '\x0c' texto largo largo 10 lineas despues 900906 texto larg...
asked by 17.10.2018 / 23:11
0
answers

Read a date (datetime) from an Entry (Python 3)

I am trying to define a function (which I have called "nextTime") that allows me to read the date that the user puts in the Entry (or today's date) and modify it with a "Next day" button. The date I want to be written in the dd / mm / yy...
asked by 17.10.2018 / 23:06
0
answers

Help with drawing in PyQt5

I am new to programming and as a project I am making an application for calculating slabs of a building, and an important part of this is that (once the number of slabs and the length of each one have been entered) I can draw the slabs in a sche...
asked by 16.10.2018 / 00:19
1
answer

Problem with Fibonacci recursion

Hello, very recently we started with recursion and I do not understand it very much, they ask to create a program that makes the fibonacci succession but in several cases it gives me another value #Fibonacci def fibonacci(n): if n==1 or n...
asked by 16.10.2018 / 01:18
0
answers

Convert SMIL file to JSON

In this program we manage a .smil file and we want to convert it to Json during its execution. The program works as it should in all methods but it shows the same output as when I was printing the .smil file on the terminal, so I think that my t...
asked by 16.10.2018 / 13:51
0
answers

ComboBox in Python 2.7.x

I'm starting in python and well I'm trying to put a ComboBox with ttk but I have a problem and I try to use the methods of the ComboBox but I generate error, according to no such method. I have been reading the documentation, and I have read...
asked by 14.10.2018 / 03:34