You will write the two functions that give the temporary IUPAC name and symbol of an element from its atomic number.
The idea. Join the roots of the digits and add ium. The i of bi and tri is dropped before ium, and the n of enn is dropped before nil. The symbol is the first letter of each root.
Your tasks.
iupac_name, return the name, with a capital first letter.iupac_symbol, return the symbol.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…