File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- # Create a program that reads a person's name and tells if they have "Silva" in their name
1+ #25- Create a program that reads a person's name and tells if they have "Silva" in their name
22name = str (input ('What your full name?' ))
33print (F'Your name has Silva? { 'silva' in name .lower ()} .' )
Original file line number Diff line number Diff line change 1- # Write a program that reads a person's full name, then shows the first and last names separately.
1+ #27- Write a program that reads a person's full name, then shows the first and last names separately.
22name = str (input ('Enter your full name:' ))
33value = name .split ()
44print ('Muito prazer em te conhecer!' )
Original file line number Diff line number Diff line change 1- # Develop a program that asks the distance of a trip in km. Calculate the ticket price, charging R$0.50 per
1+ #31- Develop a program that asks the distance of a trip in km. Calculate the ticket price, charging R$0.50 per
22# km for trips up to 200km and R$0.45 for longer trips.
33distance = float (input ('What is the distance of your travel?' ))
44print (f'You wil stard a travel of { distance } km.' )
You can’t perform that action at this time.
0 commit comments