-
Marked Solved Status for Duplicating a List but, both copies must point to Different memory Location
Hello, I want to duplicate a list in python. The way I want is, I need two list with same content pointing to different memory Location. What I tried is … -
Replied To a Post in Is the TAB going to replace the laptop ?
I use my IPad for information, but don't consider it a real computer. It is just too awkward to write a scientific program with it, even though I found a … -
Replied To a Post in What are you eating/drinking right now?
I was told to eat crow! -
Replied To a Post in How is the weather today in your country?
Las Vegas Nevada (SW USA) had the warmest January and February on record. We finally saw some rain the other day after about three months of sunshine. -
Replied To a Post in Starting place.
Google Python class: http://www.youtube.com/watch?v=tKTZoB2Vjuk Another youtube class: http://www.youtube.com/watch?v=Gp60Qp3GUBU -
Replied To a Post in Starting place.
"Dive Into Python" Mark Pilgrim's Free online book, novice to pro, is updated constantly, and has been rewritten for Python3, see ... http://getpython3.com/diveintopython3/ (check appendix A for Py2-to-Py3 differences) -
Replied To a Post in Converting celsius to fahrenheit using a loop to display the table
Mildly helpful hint for the loop ... for c in range(0, 21): print("Celsius = {}".format(c)) ''' result ... Celsius = 0 Celsius = 1 Celsius = 2 Celsius = 3 … -
Replied To a Post in Duplicating a List but, both copies must point to Different memory Location
mylist1 = [1, 2, 3] mylist2 = mylist1[:] print(id(mylist1)) print(id(mylist2)) ''' result show 2 different memory locations ... 42368056 34857768 ''' -
Replied To a Post in What example apps can a beginner use to learn Programming in Flask
You might want to explain what "Flask" is. -
Replied To a Post in Converting celsius to fahrenheit using a loop to display the table
Check out this very old snippet ... http://www.daniweb.com/software-development/python/code/216414/a-very-simple-python-program It shows you the basics of a function and to loop a table. You need to modifiy this to your case. Also … -
Replied To a Post in Change the First Character of List word to Upper Case
Something like this ... fname_in = "names_nocaps.txt" # write a test data file data = '''\ frank heidi karl ''' with open(fname_in, 'w') as fout: for name in data: fout.write(name) … -
Replied To a Post in Any help with Leading Zero's
Why are your indentations so odd? -
Replied To a Post in Sochi Olympic Hockey - Canada Rocks
A pie-eating competition would be a nice addition to the olympic zoo. -
Replied To a Post in Memorable Quotations
"Fugg the EU!" ... US Assistant Secretary of State Victoria Nuland -
Replied To a Post in Self Naming Varibles
What you have in mind is very poor programming! Use a list or dictionary instead. -
Replied To a Post in Jokes
Q: "What's 10, 9, 8, 7, 6, 5, 4, 3, 2, 1?" A: "Bo Derek getting older." -
Replied To a Post in Memorable Quotations
"They invented hugs to let people know you love them without saying anything." ... Bill Keane -
Replied To a Post in Memorable Quotations
"All you need is love. But a little chocolate now and then doesn't hurt." ... Charles M. Schulz -
Replied To a Post in Jokes
At a recent computer software engineering course in the US, the participants were given an awkward question to answer: "If you had just boarded an airliner and discovered that your … -
Replied To a Post in Jokes
I take my wife everywhere, but she keeps finding her way back. -
Replied To a Post in What is your favorite English word?
Willy-nilly -
Replied To a Post in Jokes
These two strings walk into a bar and sit down. The bartender says, "So what'll it be?" The first string says, "I think I'll have a beer quag fulk boorg … -
Replied To a Post in Ten favourite movies
1) Boynton Beach Club 2) Star Trek: the motion picture 3) The Family Stone 4) Twister 5) The Whole Nine Yards 6) Dan in Real Life 7) Crazy Stupid Love … -
Replied To a Post in How is the weather today in your country?
The wind will push the golfball right off the green. Now that is bad weather! -
Marked Solved Status for Beginner
Hi, i'm a beginner to computer programming and I feel like I didn't learn anything in college. I got my associates in science and I don't know from where to … -
Replied To a Post in menubars in tkinter
Maybe this will help ... # a Tkinter menu example similar to: # http://effbot.org/tkinterbook/tkinter-application-windows.htm try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk def … -
Marked Solved Status for how to capture mouse click on a panel?
How can I capture a mouse click on a wx.Panel so that a circle is drawn wherever the mouse is clicked on the panel? -
Replied To a Post in drawing problem using wxPython
Interesting, I don't need line `wx.EVT_LEFT_DOWN(self.panel, self.OnLeftDown)` Could it be the version of wxPython? I used installer wxPython2.9-win32-2.9.1.1-py27.exe -
Replied To a Post in wxpython
wx.Slider(parent, id, value, minValue, maxValue, pos, size, style) Looks like you set minValue higher than maxValue. -
Replied To a Post in Beginner
Strictly speaking, C is a low level language and Python is a high level language. Each of those has a purpose. -
Replied To a Post in Beginner
The C compiler is written in what computer language? Python could have been written in Assembly language. -
Replied To a Post in how to capture mouse click on a panel?
Generally ... # get the position of the mouse when clicked or moved # vega import wx class MyFrame(wx.Frame): """create a color frame, inherits from wx.Frame""" def __init__(self, parent): wx.Frame.__init__(self, … -
Marked Solved Status for finding the maximum and minimum
Write a program that can read the students records from the file “scores.dat”. This program will find the maximum and the minimum student scores. The first line in the file … -
Replied To a Post in finding the maximum and minimum
Please don't highjack existing threads. Create your own with the proper title. Also show some coding effort. -
Replied To a Post in Any software is hackable?
The example at the Target stores shows that data security was criminally sloppy, allowing a 17 year old teenager from Russia to get in with a piece of homecoded malware … -
Replied To a Post in i need help and quick
Follow the advice of Anima Templi, and also check out ... http://www.daniweb.com/software-development/python/threads/32007/projects-for-the-beginner There are plenty of samll projects there. -
Replied To a Post in Need help for this Python program
MFS NCCCC please show us what you have done. Letting someone else write your homework for you will not allow you to learn much. -
Replied To a Post in Beginner
Comparing simple calculation using C or Python ... http://www.daniweb.com/software-development/python/threads/20774/starting-python/2#post147920 -
Replied To a Post in Beginner
I used computer languages to solve science problems at work, starting with C then Pascal, followed by Python. Python was and is by far the most powerful tool and actually … -
Replied To a Post in Any software is hackable?
The recent security breach at Target stores that stole data from 110 million hapless customers was done with a malware program that copies and diverts data coming from the working … -
Replied To a Post in sorting of list using list.sort
You can use the Schwartzian transform algorithm ... ''' sort_Schwartzian.py example of the Schwartzian transform algorithm ''' def get_vowel_count(word, count=0): for c in word: if c in 'aeiou': count += … -
Replied To a Post in Memorable Quotations
When it comes to chocolate, resistance is futile. -
Marked Solved Status for Finding the largest and smallest numbers in python
#Name: Calum Macleod #Date : November 6, 2012 #Purpose: A Python program with a loop that lets the user enter a series of whole numbers. #The user should enter the … -
Replied To a Post in Tkinter GUI help please
Using a base64 encoded GIF image string with Tkinter is very easy and usefull for smaller images. First you create the image string ... ''' Base64encGIF2.py create a base64 image … -
Replied To a Post in list index out of range?
This works ... ''' urllib2_info_getheaders.py tested with Python275 ''' import urllib2 import os def download(url, download_dir): file_name = url.split('/')[-1] u = urllib2.urlopen(url) f = open(os.path.join(download_dir, file_name), 'wb') meta = u.info() … -
Replied To a Post in Graphics in Python
A Tkinter drawing example ... ''' tk_canvas_shapes101.py use the Tkinter GUI toolkit that comes with Python to draw some shapes for more shapes check canvas at ... http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html or http://effbot.org/tkinterbook/canvas.htm … -
Replied To a Post in Inputs for python
Maybe something simple like ... `sides = int(input("Dice has how many sides, 4, 6, or 12? "))` -
Replied To a Post in using loops in python for a dice simulator
You can apply an endless while loop (with an exit condition) like this ... import random # optional, make string input work with Python2 or Python3 try: input = raw_input … -
Replied To a Post in python error in coding
You have quite a few mistakes. This will work, look at it closely ... import random # optional, make string input work with Python2 or Python3 try: input = raw_input … -
Replied To a Post in Random arrangement of set of words in python
Take a look at ... itertools.permutations(iterable, sample_size) in the Python manual.
The End.