Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Strange logic! :)
Post: RE: Strange logic! :)

(May-03-2017, 10:39 AM)buran Wrote: (May-03-2017, 10:34 AM)idontreallywolf Wrote: because x = e += 1 is same as x = e = e + 1 actually, the first one is invalid syntax and rise SynatxError, while...
idontreallywolf General Coding Help 10 8,262 May-05-2017, 06:44 AM
    Thread: Strange logic! :)
Post: RE: Strange logic! :)

You are allowed to do: x = e+1but not x = e += 1because x = e += 1 is same as x = e = e + 1
idontreallywolf General Coding Help 10 8,262 May-03-2017, 10:34 AM
    Thread: General Python code for Newbie
Post: RE: General Python code for Newbie

Google this : site:stackoverflow.com python download file from google drive
idontreallywolf Web Scraping & Web Development 22 197,944 Apr-29-2017, 12:10 PM
    Thread: Need help in coding errors
Post: RE: Need help for finding errors

[DELETED]
idontreallywolf General Coding Help 3 3,446 Apr-28-2017, 06:18 PM
    Thread: Blackjack total from string HW
Post: RE: Blackjack total from string HW

@snippsat Define "not nice"
idontreallywolf Homework 5 5,610 Apr-27-2017, 04:47 PM
    Thread: Blackjack total from string HW
Post: RE: Blackjack total from string HW

All you have to do is to convert the numbers by using str() function to strings and then concatenate them by using python 2.x num = 4 maxnum = 14 spades = 3 print "Player Hand Total is "+str(num)+"/"...
idontreallywolf Homework 5 5,610 Apr-27-2017, 12:51 PM
    Thread: How to make a script to find a certain word in text files in a whole directory ?
Post: RE: How to make a script to find a certain word in...

I have created 2 different .txt files in the directory of the script called test.txt and test2.txt and i have written word in each file but different lines. and got the following result after executin...
idontreallywolf General Coding Help 2 5,925 Apr-27-2017, 09:54 AM
    Thread: base64 decoding issue or bug
Post: RE: base64 decoding issue or bug

Next time show your code, let us now how you have made it. So I tried this with python 2 & 3 import base64 encode = base64.b64encode(b"this is a test string asdlka jlkdjasd") decode = base64.b6...
idontreallywolf General Coding Help 2 14,068 Apr-25-2017, 12:58 PM
    Thread: List/set
Post: RE: List/set

@User-janek30 You can use index() method which gets you the index number of each element of the list/tuple/dict that you're iterating list = [{"a","b","c","d"},{"k","f","r","c"},{"c","a","o","r"},{"m...
idontreallywolf Homework 7 5,938 Apr-25-2017, 12:45 PM
    Thread: Sorting ID with first and last name Arrays
Post: RE: Sorting ID with first and last name Arrays

(Apr-23-2017, 07:06 PM)volcano63 Wrote: (Apr-23-2017, 12:32 PM)idontreallywolf Wrote: Well, you will have to follow some steps: 1. instead of using 2 lists (FirstName & LastName) you could ju...
idontreallywolf Homework 9 9,928 Apr-23-2017, 08:29 PM
    Thread: trying to download sympy
Post: RE: trying to download sympy

Show the errors
idontreallywolf Homework 4 5,146 Apr-23-2017, 06:49 PM
    Thread: valueError too many values to unpack
Post: RE: valueError too many values to unpack

(Apr-23-2017, 06:17 PM)micseydel Wrote: (Apr-23-2017, 06:10 PM)idontreallywolf Wrote: a, b = input("Enter two numbers> "), input("Enter two numbers> ")That behavior would cause the prompt to...
idontreallywolf General Coding Help 7 90,369 Apr-23-2017, 06:34 PM
    Thread: valueError too many values to unpack
Post: RE: valueError too many values to unpack

You have 2 options: 1. a, b = input("Enter two numbers> "), input("Enter two numbers> ") 2. a = input("Enter two numbers> ") a = a.split(' ') # a becomes a list of 2 strings ['1', '2'] # Y...
idontreallywolf General Coding Help 7 90,369 Apr-23-2017, 06:10 PM
    Thread: Need hired help from python programmer
Post: RE: Need hired help from python programmer

PM me
idontreallywolf Jobs 6 6,307 Apr-23-2017, 01:08 PM
    Thread: Simple script to find directories containing pictures
Post: RE: Simple script to find directories containing p...

You need glob - http://stackoverflow.com/a/3964691/6212957
idontreallywolf Code sharing 8 6,724 Apr-23-2017, 12:56 PM
    Thread: Help? Letter Grade assignment..
Post: RE: Help? Letter Grade assignment..

if average >= 100: this means if average is HIGHER THAN or EQUALS TO 100 What you should use here is just > instead of >=
idontreallywolf Homework 3 4,578 Apr-23-2017, 12:47 PM
    Thread: Help with code/URGENT/Adding position to register list
Post: RE: Help with code/URGENT/Adding position to regis...

Maybe you should let us know what your code looks like, since, well you know.. We're not mind-readers.
idontreallywolf General Coding Help 3 3,688 Apr-23-2017, 12:35 PM
    Thread: Sorting ID with first and last name Arrays
Post: RE: Sorting ID with first and last name Arrays

Well, you will have to follow some steps: 1. instead of using 2 lists (FirstName & LastName) you could just create a dictionary and put Firstnames and Lastnames in it. example: Names = {'Anna':'Z...
idontreallywolf Homework 9 9,928 Apr-23-2017, 12:32 PM
    Thread: Nested loops, lists and if statements
Post: RE: Nested loops, lists and if statements

The moderator just told me not to post code. You should delete it.
idontreallywolf Homework 10 8,930 Apr-23-2017, 10:47 AM
    Thread: Write a function sorting(L)?
Post: RE: Write a function sorting(L)?

Well, Python has a sort()ing funciton but if you don't want to use that, you could try BubbleSorting CHEAT: Mekire: Snip
idontreallywolf Homework 11 8,275 Apr-22-2017, 11:45 AM

User Panel Messages

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