Question:
Make a function to verify whether the credit card numbers from ABCD Bank are valid or not.
A valid credit card from ABCD Bank has the following characteristics:
It must start with a 4, 5 or 6.
It must contain exactly 16 digits.
It must only...
Question:
The general problem of balancing and nesting different kinds of opening and closing symbols occurs frequently. Strings of symbols such as
{ { ( [ ] [ ] ) } ( ) }
[ [ { { ( ( ) ) } } ] ]
[ ] [ ]...
Posted at 23:23h
in
Uncategorized
by admin
Question:
Continue modify the program in the class, so the image can move diagonally (means it can move not only x position also y position.)
...
Question 1:
You take part in a competition and get good score. So you decide to add it to your resume. However, the released results only include the average rank for each of the attained scores. You think that might not be enough information, and want...
Posted at 23:08h
in
Uncategorized
by admin
Question 1:
Draw the following picture in the pygame window: (could be different color)
Hint: using pygame.draw.circle
Question 2:
Draw below image using pygame. (could using different color)
...
Posted at 22:41h
in
Uncategorized
by admin
Question:
Ken is working for the secret agency. He is going to send a secret message that encodes UPPERCASE words by shifting their letters forward.
Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S = 3 positions gives E. However, sometimes...