Question: CSE 1 2 8 4 : Introduction to Computer Programming home > 3 . 1 : String basics zyBooks catalog CHALLENGE ACTIVITY 3 . 1

CSE 1284: Introduction to Computer Programming home >3.1 : String basics
zyBooks catalog
CHALLENGE
ACTIVITY
3.1.2: String basics.
547726.3512336 qx3zay7
Jump to level 1
Read string person_name from input. Then, read num_coins from input, using int() to convert the input read to an integer.
Click here for example
Ex: If the input is:
Joy
15
then the output is:
Joy lost 3 coins, so 12 remain
1
2 person_name = Joy
3 num_coins =15
4
5 prent(person_name, 'lost 3 coins, so', num_coins -3, 'remain')
 CSE 1284: Introduction to Computer Programming home >3.1 : String basics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!