Posts
 
Reputation
Joined
Last Seen
Ranked #160
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
107
Posts with Upvotes
94
Upvoting Members
49
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
4
28 Commented Posts
12 Endorsements
Ranked #151
Ranked #182
~323.95K People Reached
About Me

Working as a business analyst and system designer for financial companies in Hungary.

Interests
Software design, python
Favorite Tags
Member Avatar for isendre

Hi everyone, I'm having trouble creating a program. This program needs to create a square board of size n, where a user inputs an integer value 2 - 9. For example, a board with size n=4 would look like: 1 . . . 2 . . . 3 . . …

Member Avatar for cossy254
1
6K
Member Avatar for Luka_1

I have never learn python and i need to write one small program in it. I have C++ code so can someone convert that code to python code ? code: #include <stdio.h> int N; struct { int y, x1, x2; } platforme[100]; int spusti(double x, int y) { int rez …

Member Avatar for Adina_2
0
72K
Member Avatar for vegaseat
Member Avatar for paddy3118
1
2K
Member Avatar for linny_faith

Hi! I am creating a simple python tkinter calculator. However when I was due to submit my code in my teacher said that my code is inefficient and recommended i change the following: 1.) Create buttons using a for loop 2.) have two classes - one of which is for …

Member Avatar for slate
0
613
Member Avatar for vegaseat

This simple isprime(number) function checks if the given integer number is a prime number and returns True or False. The function makes sure that the number is a positive integer, and that 1 is not considered a prime number. To find out if an integer n is odd one can …

Member Avatar for amir_19
3
24K
Member Avatar for sarfrazashfaq

HI All! I need to have some help. I have a python function name is abc.py and variable is declared in abc.py, variable name is 'uname'. How can i call variable name 'uname' of abc.py in my batch file name testing.bat and get uname value in my batch testing.bat file? …

Member Avatar for jaakdentrekhaak
0
5K
Member Avatar for ayushi_3

I am learning python from "Learn Python The Hard Way", I came across a source code "from sys import argv" and got an explanation that sys is a module from where argv is imported. Although, sounds simple but still not able to understand the concept behind. I would like to …

Member Avatar for hastings.george.5
0
210
Member Avatar for Mark_64

I have a rock paper scissors code that works in python 2.7- it gives you 4 options (rock, paper scissors, or quit). However, I have to add a while loop to it and it somehow messes up my code whenever I add it. Can someone please help me? Thanks. import …

Member Avatar for slate
0
292
Member Avatar for Jeah_1

Help me create a code that will ask the user the guess the randomly generated integer by the computer using recursive function. Thanks!

Member Avatar for slate
0
172
Member Avatar for Saif_6

I have made two windows startscreen=tk() and FirstScreen=tk() I want to make a button on **startscreen** that opens up the window **FirstScreen* This is the code for the startscreen startscreen=Tk() ##Photo Car## PhotoCarRed = PhotoImage(file="D:\Python Projects\Parking Management System\Photos\Best-High-Resolution-Photos-For-Cars.png") PlacementPhotoCarRed = Label(startscreen, image = PhotoCarRed) PlacementPhotoCarRed.pack(side="top", fill=X ) ###ToolBar on the …

Member Avatar for slate
0
594
Member Avatar for Lucas_10

How could I improve my code for Bubble Blaster. from Tkinter import * HEIGHT = 626 WIDTH = 1238 window = Tk() window.title('Bubble Blaster 1.8 - By Lucas - AiroTM - Contact Us On Airo ;)') c = Canvas(window, width=WIDTH, height=HEIGHT, bg='darkblue') c.pack() ship_id = c.create_polygon(5, 5, 5, 25, 30, …

Member Avatar for Lucas_10
0
346
Member Avatar for wine_1

There is a multi-dimensional array, e.g., ` data is of shape (1,320,320,1)` I once saw a function which uses x=data[:,c:-c,d:-d] I am not very clear about what does this mean, my original understanding is that x will keep data's first two dimensions, and take a slice from data on the …

Member Avatar for slate
0
278
Member Avatar for Mengchen

from turtle import * import random def allTriMedian (w=300): speed (0) vertices = [] point = turtle.Point(x,y) for i in range (3): x = random.randint(0,300) y = random.randint(0,300) vertices.append(trutle.Point(x,y)) point = turtle.Point(x,y) triangle = turtle.Polygon(vertices) a = triangle.side() b = triangle.side() c = triangle.side() m1 = tirangle.median m2 = triangle.median …

Member Avatar for slate
0
978
Member Avatar for Gowda_1

I'm new to python, for my project I need to send mail from python.. I'm getting the following error can someone please help me how to get out of it.. Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for …

Member Avatar for Lucas_10
0
595
Member Avatar for Tim_10

I need to comput and display the sum and average of the cubes of the even natural numbers between 2 and n. Where n is entered by the user. Im stuck on how to average the sum of the cubes. Help Please. This is what I have so far. def …

Member Avatar for tinstaafl
0
375
Member Avatar for Amber_6

I want to convert letters "M", "E" and "D" into maritime flags from turtle import * def drawInitials (ref=(0,0), w=100, spacing=10): """Params: ref (int 2-tuple): bottom right corner, the reference point w (int): width of each letter, in pixels spacing (int): separation between consecutive letters, in pixels """ speed(0) drawInitials …

Member Avatar for slate
0
298
Member Avatar for Pandey_1

Suppose i have one dictionary menu={'pizza':1,'Burger':1,'sandwitch':0} when i run tkinter gui these all key will be displayed on GUI. If value is 1 then respected key must be ticked rest will be unticked

Member Avatar for slate
0
174
Member Avatar for Pandey_1

There is one application where two radio buttons are available.i.e default and custom. If custom is selected then one panel will be visible which contain available drives list of not selected checkbox which are generated based on list but while i am doing such things it generate checkbox many time …

Member Avatar for Pandey_1
0
360
Member Avatar for Pandey_1

from Tkinter import * from ttk import Style class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent, background="#333") self.parent = parent self.parent.title("sample") self.parent.iconbitmap('sample.ico') self.pack(fill=BOTH, expand=1) self.centerWindow() self.initUI() def centerWindow(self): w = 500 h = 450 sw = self.parent.winfo_screenwidth() sh = self.parent.winfo_screenheight() x = (sw - w)/2 y = (sh - h)/2 self.parent.geometry('%dx%d+%d+%d' …

Member Avatar for Pandey_1
0
7K
Member Avatar for bob_15

My current program is text based, is there a way to convert it to a GUI based one? import sqlite3 from tkinter import* import sys import random from random import shuffle import time #------------------------------------------------------------------------------------------------------- def database1(): conn = sqlite3.connect("Database1.db") #connection to database #directory will need to be changed in order …

Member Avatar for slate
0
703
Member Avatar for zero_1

How to update jquery on windows 7? my jquery stil 1.4.3 i want to change it become version 1.7.3 thanks before

Member Avatar for slate
0
154
Member Avatar for engrjd91

I am new to python, in the below code i am reading 2 files and writing in 2 files. I want to open these files in seperate functions as to make some indented look. Can anyone suggest me how to do it? def compare(): memberReportFile=open("D:\MemberReport.txt", 'w') readableRulesFile=open("D:\ReadableRules.txt", 'w') membersFile=open("D:\Members.txt") rulesFile=open("D:\Rules.txt", …

Member Avatar for slate
0
241
Member Avatar for grand_78

Okay so my code works, but I need a few more requirements for it and I can't seem to get them right even though they should be pretty simple. I just need the window to display an error message when the values entered are not numerical and when the values …

Member Avatar for slate
0
230
Member Avatar for Mickey_2

I'm developing a dirt-simple text editor for personal use, customized the way I like it. My biggest difficulty is with grasping how OOP works. Could you kindly review the following code and suggest improvements (or at least link further information)? Much appreciated. from tkinter import Tk, END, INSERT from tkinter.scrolledtext …

Member Avatar for John_103
0
287
Member Avatar for zero_1

How to combine two class? so the output can be equal... here's my code.. class year: def __add__(self, year): return (year) class day: def __add__(self, day): return (day) class month: def __add__(self, month): return (month) class Date: def __call__(self, year, month, day): return (year, month, day) class Delta(year, month, day): …

Member Avatar for zero_1
0
315
Member Avatar for firdevs

question: write in python to take five input values and output: a)the highest value b)the lowest value c)the average (i need help with my homework)

Member Avatar for slate
0
158
Member Avatar for Mickey_2

What software do you recommend for drawing layouts to be implemented in a ttk application? I'm looking for something simple and clutter-free where there aren't 10 zillion options I don't want. All I really need is basic shapes corresponding to the shapes of ttk widgets and a way to place …

Member Avatar for slate
0
125
Member Avatar for j.parkerrrr

Help please, im using python 3 and im trying to print the state with maximum and minimum population from a text file...This is what the text file contains. Alabama AL 4802982 Alaska AK 721523 Arizona AZ 6412700 Arkansas AR 2926229 California CA 37341989 Colorado CO 4939456 Connecticut CT 3581628 Delaware …

Member Avatar for slate
-2
355
Member Avatar for Subin raj

You are given N integers that are arranged circularly. There are N ways to pick consecutive subsequences of length M (M < N). For any such subsequence we can find the “K”-value of that subsequence. “K”-value for a given subsequence is the Kth smallest number in that subsequence.

Member Avatar for slate
0
143
Member Avatar for rebekah.stacy1

Write a program that asks the user to enter a series of 20 numbers. Store the numbers in a list and display the lowest, highest, total, and average of the numbers. Plus display enter a series of 20 numberes, find the lowest, highest, total, and average of the numbers in …

Member Avatar for vegaseat
0
519