Deck of cards game
YesunErdeneBatb (3)

players = ['Yesun','Player2']

player1_name = input("Enter your name")

if player1_name in players:
print ("welcome player")
else:
print ("Not Available")

import random
cards = ['A2,''A3','A4','A5','C4','C6','C8']

print (cards)
random.shuffle(cards)
print (cards)

deck = ['A2,''A3','A4','A5','C4','C6','C8']
p1_hand = []
p2_hand = []

p1_hand.append(deck.pop(0))
p2_hand.append(deck.pop(1))
p1_hand.append(deck.pop(2))

print(p1_hand)
print(p2_hand)

You are viewing a single comment. View All
Spacecraft (46)

Looks like you need a colon ( : ) at the end of line 42.