Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: My while loop won't loop
Post: RE: My while loop won't loop

Just because your while loop doesn't work, it doesn't always mean the problem is in the loop itself - it may be something else outside your while loop. Show your full code, to help us help you.
pyzyx3qwerty Homework 6 1,094 Sep-10-2020, 04:07 PM
    Thread: Exercices
Post: Exercices

Any good sites which provide python exercises to practice? I haven't really coded in a while, so I need something to recall exercices to recall.
pyzyx3qwerty Bar 2 741 Aug-25-2020, 12:11 PM
    Thread: how to loop this
Post: RE: how to loop this

(Aug-18-2020, 03:24 AM)dirtdude Wrote: guess = input("guess a number between 1 and 50 ") guess = int(guess) if guess == 31: print("yes!The correct answer is " + str(guess) ) else: print("wrong,try...
pyzyx3qwerty General Coding Help 4 861 Aug-20-2020, 01:56 PM
    Thread: Need help with a code
Post: RE: Need help with a code

(Aug-06-2020, 10:57 AM)saratha Wrote: Hey everyone, I have a problem solving this code, so can you help? The problem is: to do a repetition count and give the result as a dictionary. And also if t...
pyzyx3qwerty Homework 5 974 Aug-07-2020, 05:03 PM
    Thread: Need help with .replace()
Post: RE: Need help with .replace()

You could use a dictionary and keys method to replace each letter with its respective number.
pyzyx3qwerty General Coding Help 2 615 Aug-01-2020, 04:37 PM
    Thread: Easy Learning Python
Post: RE: Easy Learning Python 3

You recommending a book is fine, but don't advertise a product on this forum.
pyzyx3qwerty Bar 6 1,397 Jul-27-2020, 07:16 AM
    Thread: ValueError: could not convert string to float:
Post: RE: ValueError: could not convert string to float:

Looks like the bet is a string ,i.e., like a word or something, which cannot be converted into a floating point decimal, which only consists. And there is an error in your line 10 - bet = bettingentr...
pyzyx3qwerty General Coding Help 3 2,159 Jul-27-2020, 04:59 AM
    Thread: Homework help:While Loops question
Post: RE: Homework help:While Loops question

I'm not sure if this is correct, but How about using a break? numItems = int(input("How many items are you buying?:")) #Initializes the amount of items and the price subPrice = 0 x = 0 #use condit...
pyzyx3qwerty Homework 6 1,059 Jul-26-2020, 10:23 AM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

(Jul-12-2020, 10:39 PM)Nomatter Wrote: Hi I am emir, I study computer engineering. This year was my first year and we did not finish this year because of virus. I am learning python nowadays and ı ...
pyzyx3qwerty Bar 389 123,174 Jul-16-2020, 01:55 PM
    Thread: topic error, to be deleted.
Post: RE: topic error, to be deleted.

We can't delete threads in the forum. However, you can reuse this thread with your problems in the future.
pyzyx3qwerty General Coding Help 1 26 Jul-04-2020, 08:44 AM
    Thread: Reverse word
Post: RE: Reverse word

(Jul-02-2020, 04:00 PM)chesschaser Wrote: Cleaner print(string[::-1])This doesn't work for him like he already said, @chesschaser
pyzyx3qwerty General Coding Help 6 1,928 Jul-02-2020, 04:10 PM
    Thread: Leap Year Issue
Post: RE: Leap Year Issue

Actually, your code is right When it comes to years like 1000, 2000, 100, 500 it is divided by 400, not 4 and if there is no remainder, it isn't a leap year
pyzyx3qwerty General Coding Help 3 796 Jul-02-2020, 03:16 PM
    Thread: def vs class
Post: RE: def vs class

In your second piece of code, there are three errors - No : at the end of line 1 On line 2, you seem to have forgotten an 'l' - it should be if x=='furball': On line 3, print shouldn't be having a ...
pyzyx3qwerty Homework 2 623 Jul-02-2020, 01:31 PM
    Thread: issue with if else statement
Post: RE: issue with if else statement

Remember to use proper code tags in the future while posting, @spalisetty06 - see BBCode
pyzyx3qwerty General Coding Help 6 929 Jul-02-2020, 07:47 AM
    Thread: How to call self into other functions
Post: RE: How to call self into other functions

Please use proper code tags while coding - see BBCode
pyzyx3qwerty Homework 1 631 Jun-30-2020, 01:10 PM
    Thread: No module named 'Tkinter'
Post: RE: No module named 'Tkinter'

@jdos, your solution gives an excellent explanation, but the real problem is that he doesn't have the Tkinter module installed. To do so, just go through this link and proceed with the installation, d...
pyzyx3qwerty General Coding Help 13 5,103 Jun-30-2020, 09:12 AM
    Thread: question on list in Python
Post: RE: question on list in Python

Basically, in the first code, the word 'Apple' is itself one character in the string, and so your output is ['_'] as there is only one character. However, in your second code, each letter in the word ...
pyzyx3qwerty Homework 1 833 Jun-30-2020, 09:03 AM
    Thread: Another Rock, Paper, Scissors
Post: RE: Another Rock, Paper, Scissors

Is there any way we get to quit to change from one mode to another? I had to quit the game to do so.
pyzyx3qwerty Code sharing 4 1,318 Jun-29-2020, 04:46 PM
    Thread: I am trying to send an email with python
Post: RE: I am trying to send an email with python

It's your computer - I'm not supposed to know what file you are supposed to call. However, to check if it is the right file, just go through the file and see if it meets all your requirements.
pyzyx3qwerty General Coding Help 9 1,396 Jun-29-2020, 04:28 PM
    Thread: I am trying to send an email with python
Post: RE: I am trying to send an email with python

Please use proper code tags while posting your thread. As the error states - it looks like you are calling either a file you don't have or the wrong file. Just check the file on your computer
pyzyx3qwerty General Coding Help 9 1,396 Jun-29-2020, 02:38 PM

User Panel Messages

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