Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: whats wrong with this code?
Post: RE: whats wrong with this code?

(Aug-31-2017, 12:10 PM)sparkz_alot Wrote: Other solutions are by formatting the input and using lists. In the first example, we change the users response to all lower case (a common practice), so it...
Hussein26 General Coding Help 9 5,624 Sep-01-2017, 06:17 AM
    Thread: whats wrong with this code?
Post: RE: whats wrong with this code?

(Aug-31-2017, 02:42 AM)ichabod801 Wrote: You rarely use is. The is operator checks to see if both objects are stored in the same place (basically). It checks not just for a string 'italy', but a par...
Hussein26 General Coding Help 9 5,624 Aug-31-2017, 02:53 AM
    Thread: whats wrong with this code?
Post: RE: whats wrong with this code?

(Aug-31-2017, 01:06 AM)hbknjr Wrote: The python is operator matches the instance and not value. To match value == is used. if favoritePlace =="italy" or favoritePlace == "Italy": I thought "==" is u...
Hussein26 General Coding Help 9 5,624 Aug-31-2017, 02:22 AM
    Thread: whats wrong with this code?
Post: whats wrong with this code?

It seems if I try to type anything other than "Italy" or "italy", it still prints out ("I love that place, same here"), which supposed to print "not bad" considering the string that was plugged into t...
Hussein26 General Coding Help 9 5,624 Aug-31-2017, 12:26 AM
    Thread: Why isn't this code working?
Post: RE: Why isn't this code working?

(Aug-30-2017, 04:24 PM)ichabod801 Wrote: First, you want to use == (double equals) for comparison, not is. Second, input returns a string, not a number. So it returns '5', which is not the same as 5...
Hussein26 General Coding Help 3 3,534 Aug-30-2017, 05:12 PM
    Thread: Why isn't this code working?
Post: Why isn't this code working?

I'm fairly new to python and just started yesterday. I gathered the most that I know and formed a little game or set of questions that the user would input his results and it'll come out. However, I r...
Hussein26 General Coding Help 3 3,534 Aug-30-2017, 04:03 PM

User Panel Messages

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