Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge | Variables
Introduction to Python | Mobile-Friendly
course content

Contenu du cours

Introduction to Python | Mobile-Friendly

Introduction to Python | Mobile-Friendly

1. Python Basics
2. Variables
3. Strings

book
Challenge

Let's use variables for one of the previous tasks.

Suppose a principle amount of $1,000 is deposited in a bank that pays an annual interest rate of 15%, compounded yearly. Assign respective values to the appropriate variables and answer the question: How much money will you get in 5 years?

question-icon

Fill in the blanks to complete the task.

= 1000
= 1.15
= 5
print(initial_amount*annual_growth**n_of_years)
2011.3571874999993

Click or drag`n`drop items and fill in the blanks

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

course content

Contenu du cours

Introduction to Python | Mobile-Friendly

Introduction to Python | Mobile-Friendly

1. Python Basics
2. Variables
3. Strings

book
Challenge

Let's use variables for one of the previous tasks.

Suppose a principle amount of $1,000 is deposited in a bank that pays an annual interest rate of 15%, compounded yearly. Assign respective values to the appropriate variables and answer the question: How much money will you get in 5 years?

question-icon

Fill in the blanks to complete the task.

= 1000
= 1.15
= 5
print(initial_amount*annual_growth**n_of_years)
2011.3571874999993

Click or drag`n`drop items and fill in the blanks

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt