| |
thread by: ahmedbarbary |
last post May 3 '22 by: ahmedbarbary
I work on sql server 2017 I run script depend on python language v 3.10 .
I need to export data to excel fileStudentExport.xlsx already exist, and keep header without change after export.
header of excel file StudentExport.xlsx before export data to it as below
StudentId,StudentName
after run script query to export data to...
|
thread by: TLILI MED |
last post Apr 21 '22 by: TLILI MED
Hello
something that i don't understand
I launch a prog.py recovering the selected line of a treeview,
I assign these values to the 2 fields, the tt happens correctly.
prog.py
def selection
curitem=tree.focus()
dict=tree.item(curitem)
|
thread by: Marvin89 |
last post Apr 9 '22 by: dev7060
https://i.stack.imgur.com/3xA4y.png
Hey guys! Please help me, I would like to know if there is any way for vscode to provide the intellisense of attributes inherited from another class, as Pycharm does, in Vscode I can only access such attributes using a class like the example above.
I want this way, like Pycharm does:...
|
thread by: cosinus |
last post Apr 13 '22 by: zmbd
I'm totally new to Python. Just trying to figure out how to pick few, but not the same (unique by ID) winners from the .csv file. Anyone could help?
Here's my code that choose only one winner: https://pastebin.com/89TuvxuZ
What have I tried - edited the generation function to make it choose 5 winners (unfortunately, it didn't worked):...
|
thread by: Spooky Man |
last post Apr 8 '22 by: sandeep002
*I am trying to find code to check if four or more 1's, or 2's are next to each other in the 2d list and then return my win function as true
Here is the code below
`
# Connect Four
# 2d list
# Connect Four
|
thread by: kaijoh26 |
last post Apr 9 '22 by: dev7060
#include <stdio.h>
#include <stdlib.h>
/*ADJACENCY MATRIX*/
int source,X,Y,time,visited,Z;
void DFS(int p)
{
int q;
visited=1;
printf(" %d->",p+1);
for(q=0;q<X;q++)
|
thread by: kaijoh26 |
last post Mar 30 '22 by: kaijoh26
#include <stdio.h>
#include <stdlib.h>
/*ADJACENCY MATRIX*/
int source,X,Y,time,visited,Z;
void DFS(int p)
{
int q;
visited=1;
printf(" %d->",p+1);
for(q=0;q<X;q++)
|
| |
thread by: Scoosh |
last post Mar 20 '22 by: Scoosh
I am doing a project which involves displaying details of cars, vans, etc. The vehicles all have the same attributes apart from 1. When I try to display the attributes for the different vehicles I get this:
GC15AV0 is a Blue Skoda Octavia It has <function car.get_number_of_doors at 0x00000239C6C9F3A0> doors. Located at Paisley Its price is £...
|
thread by: titboyjr |
last post Feb 23 '22 by: titboyjr
sorry if this question is dumb, I just can't figure it out but I know I'm close. Please dont roast me too hard
ok I'm pretty new at python but I've been having this problem
What I'm trying to do is upload a file via api using Requests and pyhon
Actually I have to make 2 post requests. The first one I include my api key and I get this...
|
thread by: pradyumnajpn |
last post Feb 18 '22 by: pradyumnajpn
Hi folks..
Novice in scripting..need your help pls. I dont know also for this which scripting will be good also. Please point me somewhere I can start with
wanted to generate a log file . log file should have deliminated with "|" and 100 lines each file and each line should be of 400 bytes.
data : 20220101
time : 00:10:10
Pid : 3500...
|
thread by: diegooo |
last post Feb 11 '22 by: balenaucigasa
hi, so my code looks like this
for x, name in enumerate(clients.name, 1):
yet keep getting "SyntaxError: Invalid syntax"
i'm new to coding, so sorry if this seems like a dumb question.
|
thread by: rainxy |
last post Jan 28 '22 by: dev7060
Hello, I have to take a test for my job. I am not a programmer but a teacher. They want me to teach computer science to elementary school kids. Unfortunately, the test is also based on content from the computer science taught in high school. I will have to read a lot of pseudocode on the test. I just need to pick up the convention of reading the...
|
thread by: Romlus |
last post Jun 28 '23 by: Eliadoming
In the Knytt Underground game written in Python, ini files are used with English dialogue text (key = value - value is some dialogue phrase), when I entering the Polish character eg. ęąćź displays '?' I tried to type escape character
sometext\x119sometext
sometext\u119sometext
But it s not working. Game single backslash \ reads as a line...
|
thread by: alirafay |
last post Jan 14 '22 by: rahul6sharma
i cannot add picture in toplevel new window after trying 40 times
|
thread by: terrysc04 |
last post Dec 29 '21 by: terrysc04
I am trying to understanding a coding challenge. I need to create a YAML file to automate deployment of an ec2 instance. Here is the specifications of the YAML file:
# This YAML configuration specifies a server with two volumes and two users
server:
instance_type: t2.micro
ami_type: amzn2
architecture: x86_64
...
|
| |
thread by: SwortClash |
last post Feb 22 '23 by: Vanisha
With a python program, I saved a ics file to a json one.The json file contains calendar info. My purpose is to replace a few specific strings (hours) by different ones (Keywords). basically 8:00 to Meeting1 ; 9:00 to Meeting 2 and so on. The Json content looks something like this "11/18/21 09:00 UTC-12/19/25 09:45 UTC Meeting-boss: - None". This...
|
thread by: 14vva |
last post Mar 12 '23 by: zermasroor
Hello, help me please.
Write a function: User enters natural numbers A and B (A <B). The function prints all prime numbers separated by a space on the segment
|
thread by: champ123 |
last post Nov 20 '21 by: dreamtext
recently I found that a high amount of DNS queries related to my database which was hosted at AWS are sent from my python application. I have fixed it in my separate Java project by overriding java.security file and by changing the networkaddress.cache.ttl parameter to 1hr. I need to apply the same thing to my python application. I am using the...
|
thread by: jrrobb |
last post Oct 29 '21 by: jrrobb
I wish to use the attached code to run my robot as an Obstacle Avoider. a run check on the code stops at CODEavgDistance=0/CODE and I am unable to find the solution.
This is on an Raspberry Pi 3 B with latest Rasbian O/S.
CODEprint ("right")
stop()
count=0
while True:
i=0
avgDistance=0
for i in range(5):
GPIO.output(TRIG, False) ...
|
thread by: aakanksha |
last post Oct 28 '21 by: aakanksha
this is a code and i ma getting error which is
NameError: name 'pipe' is not defined
nlp = spacy.blank('en')
def train_model(train_data):
if 'ner' not in nlp.pipe_names:
ner = nlp.create_pipe('ner')
nlp.add_pipe(ner, last=True)
|
thread by: Tharun03 |
last post Mar 29 '23 by: Roman123456789
Hi
I don't have much experience on python coding. Can someone give me a answer for this ques.
Question: Write a python program that splits a sentence into words. Change the first and last letter of each word into uppercase and display them.
For example if we type input as hello,world
The output must be:
HellO
WorlD
|
thread by: Learner99 |
last post Oct 13 '21 by: Learner99
{'data': {'close': 469.25,
'high': 484.4,
'low': 468.1,
'open': 470.0,}}
|
thread by: sergioITA |
last post Feb 20 '23 by: Vanisha
# Create a file with the name data_format.py
# Add the following functions to file data_format:
# function get_book_info(), the function askes the user to enter the following information:
# book title
# book ISBN
# book author last name
# book publisher
# year published
# book price in Canadian dollars.
# The function will eliminate...
|
| |
thread by: yuriachermann |
last post Feb 22 '23 by: Vanisha
I'm trying to create a virtual XML file, copy some content to it, then access throw parsing, it may be simple, but every path that I'm trying to use ( like 'mem://mem_test.xml' or '{}'.format(mem_file) ) are not working... What path should I use to access a file in the Virtual Memory?
import fs
import xml.etree.ElementTree as Et
...
|
thread by: Daz007 |
last post Sep 18 '21 by: Daz007
Hi,
I have just started trying to learn Python (windows) via online guides/courses etc (I read that this was a good language to start in). I was just wondering if there are any specific texts you would advise to aid me. As I said in the title I am a complete beginner in programming so any help would be great.
Thanks in Advance
|