MulaiMulai sekarang secara gratis

String interpolation

You are writing a script informing students of their grades in their classes.

For each student, you have text data that looks like:

grades = "XXXX"

where the letters "XXXX" are the grades for the student in mathematics, history, science, and drama respectively.

The variable grades, which contains the actual student's grades, is available in your environment.

Latihan ini adalah bagian dari kursus

Introduction to Julia

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Index drama grade
drama = ____
Edit dan Jalankan Kode