15,175 Topics

Member Avatar for
Member Avatar for Saran_1

I have the CSV with the following column headers: "G","Association","Subset","Rank","First Name","Last Name","Middle Name","Date of Birth","SS","Drivers License Number","Address","Phone Number","A","CF","CM","I","F","J","CN","I","CN" The Output XML format is what I seek: <GIs> <GIR> <G></G> <GM> <FirstName></FirstName> <LastName></LastName> <MiddleName></MiddleName> <FullName></FullName> <DateofBirth></DateofBirth> <SS></SS> <DriversLicenseNumber></DriversLicenseNumber> <Address> <AddressText></AddressText> <Latitude></Latitude> <Longitude></Longitude> </Address> <PhoneNumber></PhoneNumber> <A></A> <CF></CF> <CM></CM> <Association></Association> <Subset></Subset> <Rank></Rank> <I></I> …

0
111
Member Avatar for Atul_4

Hi is here any one who can tell me that how can i generate the licence key or any other things for securing my client server program please help me

Member Avatar for snippsat
0
647
Member Avatar for vegaseat

The example shows how to establish a dictionary of (row, column):value pairs to mimic a two dimensional array. This can be easily expanded to more dimensions. Python3 has dictionary comprehension, making the process of creating a dictionary of this type easier.

Member Avatar for vegaseat
1
7K
Member Avatar for DragonMastur

I would like the widgets on the window to expand as you expand the window. I know you can do it with the pack method but I'm using the grid method to arange my widgets. Pack Method: label = Label(root, text="Some Text") label.pack(expand=1, fill=BOTH) Grid Method I'm using: self.inventoryLabel = …

Member Avatar for woooee
0
6K
Member Avatar for vegaseat

The idea of this thread is to help the beginning Python programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! The creators of Python are very active, improving the language all the time. Here is a little of the …

Member Avatar for vegaseat
23
34K
Member Avatar for vegaseat

Just a simple password creator using Python code. The length of the password can be set and the characterset could be changed if you so desire.

0
569
Member Avatar for sbaw

Hi I am currently using pyinstaller 2.1 with python 2.7. I am making modifications to "TI's MSP430 Tools (Python scripts and library)" which allows the update of the MSP430 firmware over USB. Specifically, I have made some modifications to the top-level script and when I run the script it works …

Member Avatar for megaflo
0
1K
Member Avatar for BustACode

Note: In Python 2.7 use: `from __future__ import print_function` to use examples. In Python, by default, the key and value pairs in a dictionary are stored as hashes, therefore dictionaries do not retain the order in which values were added, and cannot be ordered. v_Dict ={} v_Dict["First"] = 99 v_Dict["Second"] …

Member Avatar for DragonMastur
1
476
Member Avatar for DragonMastur

I needed a calculator and I didn't want to use google since my internet is slow. So I made one! Here it is. Working with it is simple. Use the number and operation keys("c" for clear, "p" for pi, and "s" for sqrt) as well as the return and enter …

0
690
Member Avatar for vegaseat

After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a …

Member Avatar for vegaseat
20
18K
Member Avatar for Brandon500

Hello everybody I'm doing a program that finds the nth number in the fibonacci sequence. I actually already coded it. What I would like someone to do is maybe you could help me code it another way. The reason is the last assignment I turned in got a zero, because …

Member Avatar for woooee
0
233
Member Avatar for getanshub4u

Any good beginner books on python? I want to learn python easy and fast.I have coded some basic programs in c,c++,Java. Wanna learn python for scripting in linux.

Member Avatar for dewhales
0
442
Member Avatar for DragonMastur

karmstrong ask in the Python chat if any one was farmilar with converting a for loop in C to Python. Here is a program in python that will do it for you! Thank You!

Member Avatar for vegaseat
0
811
Member Avatar for vegaseat

This is a test to get the Python snippets going! For those of you who are scared of snakes, the language is named after the TV program, not the snake. Python is an interpreted language, but programs to compile/combine the code to an exe file are available (Py2Exe). The latest …

Member Avatar for vegaseat
2
3K
Member Avatar for Niloofar24

Hello. There is a text in my Python script that is in Persian language and the letters are from left to right, but in Persian language letters should be written from right to left. What should i do now to fix it and print it in UTF-8 format?

Member Avatar for megaflo
0
390
Member Avatar for anumash

Hello, I am starting out learning Python syntax and in the book that I am reading it is mentioned that objects are assigned by reference and not by value, i.e. foo1=4 foo2=foo1 Now foo2 and foo1 refer to the same object in memory and I even verified this by using …

Member Avatar for megaflo
0
330
Member Avatar for halo_123

1)Create a list of the odd numbers between 1 and n (include 1 as well as n -- if it's odd-- in the list). Associate the list with the variable odds . 2)Given the list my_list containing integers, create a list consisting of all the even elements of my_list . …

Member Avatar for PartVIII
-11
2K
Member Avatar for Rajesh_18

Dear All, I have learned to use the shutil.move to move files from one folder to another but I need to also do the following . Would appreicate any help. Perhaps a template so I can fill the gaps and learn along the way. I have a folder with sub …

Member Avatar for Gribouillis
0
279
Member Avatar for DragonMastur

I made a little py editor because I didn't want to go to all the troble of installing an idle, but I didn't like notepad either. Here it is!

Member Avatar for DragonMastur
3
314
Member Avatar for Brandon500

Hello everyone I'm having trouble with this program in Python called sumList(nums). I already tried to program it, but I get the incorrect output. The program is suppose to get the summ of numbers entered into a list by the user. Mine does not return the sum just the first …

Member Avatar for BustACode
1
1K
Member Avatar for Marco_3

0ello I'm trying creating a triangular mesh from png. How can I extract the basic information from a image contour to create a mesh? I used opencv module in order to extract the contours . On xyContour variable I have essentially a path, but with a path I think that …

0
737
Member Avatar for firoj26

**I have an issue with running python scripts on linode cloud server. I create a scrapping script to scrape data by check in and check out so that i run the script using screen method. It run over one day very smoothly but today it hang. No response. When i …

Member Avatar for firoj26
0
363
Member Avatar for Niloofar24

Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to the script to set the directory. How can I do it now?

Member Avatar for Gribouillis
0
370
Member Avatar for Arshpreet_1

I am making a Python script which will search for Thread-ID and according to thread-ID it will find corresponding UIDs. After getting the UID I will be able to get required data for analysis. My ultimate goal is to make a graph, something like the following: https://dl.dropboxusercontent.com/u/32435266/Graph3.png Is this the …

0
74
Member Avatar for Jalcock501

Hi Guys, I've been asked to create a GUI to output all the information gather by the program I currently have, however I'm new to using Tkinter and was wondering if someone could possible help... #!/usr/bin/python """ header comment section ****** file: M:\testPCAN\miketst.py ***** END of header comment section """ …

Member Avatar for woooee
0
575
Member Avatar for Irka

Hello! I was wondering if anybody could help me with something. I'm writing off-line banking application. I already have a code in Python and now I need to write window aplication for it. How should I begin? I wrote some simple code for main window in PyQt. But I dont …

Member Avatar for DragonMastur
0
351
Member Avatar for Saran_1

I am currently troubleshooting a utility that I have been working on. The main file of the utility is below. Please not that `flatten_dict` and `makerows` are seperate files and functions, respectively. My objectives are to: * Recursively traverse a directory - done * Find XML and text files only …

Member Avatar for Saran_1
0
412
Member Avatar for Mark54

Hello, again, people. You helped me to install Python on my Desktop, and now I cannot get it running on my Laptop… same as the Desktop… Win 7, 32-bit, SP1. I think I did the same procedures, but it wouldn’t work. So, I UN-installed Python. Then re-installed it. Same problems… …

Member Avatar for DragonMastur
0
279
Member Avatar for Riya_2

Write a function named repeatCount(). The function repeatCount() takes two string parameters: --> the name of an input file and the name of an output file. The function repeatCount() should read each line of the input file, identify the number of words on the line that occur more than once, …

Member Avatar for DragonMastur
0
306
Member Avatar for Henry_5

I am implementing the last feature of my Python Checkers Game, which is to require the user to make multiple jumps. For captures, I do the following: 1 Check if the move is valid: 2 self.validatedMove = True (The move that has been made is valid.) 3 self.capture() (Captures the …

Member Avatar for DragonMastur
0
794

The End.