9x9
ABC 389Problem 27 of 50
EasyWhat to do
You are given a string with three characters. The first and third characters are numbers between 1 and 9, and the middle character is 'x'. Your task is to multiply the two numbers together and print the result.
Key Concepts
string manipulation
basic math
input/output
Examples
Input:
'3x8'
Output:
24
Input:
'9x9'
Output:
81
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...