Computer Science, asked by MahamRaniyan, 1 month ago


write an algorithm for sorting cards with colour on them in two piles of the same colour​

Answers

Answered by vatsaldwi
1

Answer:

His algorithm is in python programming language

Explanation:

Card_blue = 10

Card_red = 10

cards = [Card_blue, Card_red]

for card in cards:

if card == Card_blue:

print(f'The number of blue cards is {Card_blue}')

if card == Card_red:

print(f'The number of red cards is {Card_red}')

Similar questions