Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python Flask REST API
Post: Python Flask REST API

Hello! I'm trying to create a simple REST API application that would show the contents of some folder on the server. import os from flask import Flask, jsonify app = Flask(__name__) files_in_dirs =...
vndywarhol Web Scraping & Web Development 1 2,994 Sep-26-2018, 01:24 PM
    Thread: Insert list in particular column! Help!
Post: Insert list in particular column! Help!

Hello! I have a table 'employee' with data and with one empty column 'employee_department'. [Image: https://ibb.co/bBx2CK] I want to insert a list into this column. List contains integers: depart_id...
vndywarhol General Coding Help 0 2,490 Sep-17-2018, 11:14 PM
    Thread: Error when inserting CSV file
Post: Error when inserting CSV file

I have two SQL files that work correctly and create two tables with one foreign key. CREATE TABLE IF NOT EXISTS department ( department_id SERIAL NOT NULL PRIMARY KEY, department_name VARCHAR...
vndywarhol Data Science 1 2,158 Sep-16-2018, 10:09 AM
    Thread: Fork the process (factorial)
Post: RE: Fork the process (factorial)

In my understanding, even two workers have to reduce time by half, unless I'm wrong?
vndywarhol Homework 3 3,416 Sep-06-2018, 08:04 PM
    Thread: Fork the process (factorial)
Post: Fork the process (factorial)

Hello! I'm trying to fork out the calculation of factorial using multiprocessing. I'm new to this, but it seemed to me that using Pool could solve my problem. I want to use a certain number of workers...
vndywarhol Homework 3 3,416 Sep-06-2018, 06:27 PM
    Thread: Can't get defined random integer to print properly?
Post: RE: Can't get defined random integer to print prop...

import random print("Welcome!") def diceroll(): return random.randint(1, 6) print(diceroll())Now this works. You did not return anything.
vndywarhol General Coding Help 1 2,227 Aug-29-2018, 10:15 AM
    Thread: Accuracy of sqrt
Post: Accuracy of sqrt

I'm trying to create a function which calculate root using the Newton method, but with small numbers this doesn't work. Is it problem with Python or with my func? I have tried Decimal, __future__ divi...
vndywarhol General Coding Help 1 2,543 Aug-29-2018, 09:37 AM
    Thread: Redirect to file
Post: Redirect to file

I would like to redirect all the function outputs and errors to a separate file using the context manager. I wrote the code for a function that executes without errors. It works perfectly. import sys ...
vndywarhol General Coding Help 1 2,310 Aug-23-2018, 10:40 AM
    Thread: Learning functional programming
Post: Learning functional programming

Hi! I decided to apply the functional programming in Python and apply it to the Collatz Conjecture. At first I wrote code for myself in the usual style. def collatz_steps(n, count=0): if n == 1: ...
vndywarhol General Coding Help 2 2,485 Aug-14-2018, 08:05 AM
    Thread: Incorrect lambda
Post: RE: Incorrect lambda

(Aug-13-2018, 12:16 AM)ichabod801 Wrote: Because with x - 2 and odd numbers for input, you skip 0. But 0 is your terminating condition, so you would recurse infinitely, but you get stopped by the re...
vndywarhol General Coding Help 3 2,787 Aug-13-2018, 12:31 AM
    Thread: Incorrect lambda
Post: Incorrect lambda

Hi! I'm trying to make a map with "factorial" func, but with a sum and odd numbers. For example, 1=1, 3=3+1, 5=5+3+1 and so on. Now I have something like this, but unfortunately it works with errors,...
vndywarhol General Coding Help 3 2,787 Aug-13-2018, 12:06 AM

User Panel Messages

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