top of page
PROGRAMMING CHALLENGES
City Code Generator
Difficulty:
2 Medium
1.4 String Manipulation
Topic:
Write a program that allows the user to input the names of two cities. The program should then output the first 3 characters of each city in uppercase, separated by a hyphen.
Use string slicing and the upper() method to format the output.
Need help with your programming skills?
If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.
1 hr
40 British pounds1 hr
50 British pounds
bottom of page