Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
+ new Hint/Solution Buttons | Buttons
Test UI Features
course content

Conteúdo do Curso

Test UI Features

Test UI Features

2. ContentDev Tools
3. Video Tools
4. Image Tools
5. Links
6. Other
8. Tables
9. Redesign Testing Environment

+ new Hint/Solution Buttons

Readme

  1. Copy and Paste the Source Code:
    • Begin by copying the required source code;
    • Paste the code into the designated HTML block within the chapter.
  2. Add Hint and Solution: After the HTML block, you can use any two blocks to provide a hint and a solution. The choice of blocks is entirely flexible;
  3. Important Note: Only one such element (HTML block with source code, hint, and solution) can be used per chapter.

Element

  1. Hint one;
  2. Hint two;
  3. Hint three.
1234567891011121314151617
# Data countries_dict = {'USA': (9629091, 331002651), 'Canada': (9984670, 37742154), 'Germany': (357114, 83783942), 'Brazil': (8515767, 212559417), 'India': (3166391, 1380004385)} # Modify our function def country_information_mod(d, name): if name not in d.keys(): print("There is no information about", name) else: print("Country:", name) print("Area:", d[name][0], 'sq km') print("Population:", round(d[name][1]/1000000, 2), 'mln') # Testing the function country_information_mod(countries_dict, "USA") country_information_mod(countries_dict, "Ukraine")
copy

Source code

html

index

css

index

js

index

copy

Tudo estava claro?

Seção 1. Capítulo 13
We're sorry to hear that something went wrong. What happened?
some-alt