Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Message='int' object is not subscriptable
Post: Message='int' object is not subscriptable

I'm trying to make battle ships in python and for program works for the most part apart from supposedly randomly when the computer is generating coordinates to attack the player and misses instead of ...
DanielCook General Coding Help 4 2,323 Aug-10-2021, 10:47 AM
    Thread: Trying to get the first letter of every word in a list
Post: Trying to get the first letter of every word in a ...

I am trying to take out the first letter of every word in a list. It is not working. I believe the fault to be on line 9 but i can't figure out why. def initialise(userText): lst = [] firstLe...
DanielCook General Coding Help 2 2,162 Jan-05-2021, 12:00 PM
    Thread: The program isn't counting the total properly
Post: The program isn't counting the total properly

#blackjack import random deck = ["2+diamonds","3+diamonds","4+diamonds","5+diamonds","6+diamonds","7+diamonds","8+diamonds","9+diamonds","10+diamonds","j+diamonds","q+diamonds","k+diamonds","a+diamon...
DanielCook General Coding Help 1 1,751 Jul-09-2020, 04:26 PM
    Thread: Why is the item not in list when it is
Post: Why is the item not in list when it is

#blackjack import random deck = ["2+diamonds","3+diamonds","4+diamonds","5+diamonds","6+diamonds","7+diamonds","8+diamonds","9+diamonds","10+diamonds","j+diamonds","q+diamonds","k+diamonds","a+diamon...
DanielCook General Coding Help 2 2,037 Jul-08-2020, 10:06 AM
    Thread: Syntax error for a reason I don't understand
Post: Syntax error for a reason I don't understand

I receive a syntax error on the line if a == b: (line 46) I don't understand why. I believe that all the indentations are correct. import random ans = input("Welcome to escape the cave text adventur...
DanielCook General Coding Help 2 2,452 Aug-07-2019, 09:05 AM

User Panel Messages

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