🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 5: Team Size Variable Counter

ML Engineer

Builds on these lessons

Current Task

Objective

Unlike a constant, a tf.Variable can be updated in place with methods like .assign_add() — the mutable state that model weights are built from.

Task: create a team_size Variable and increment it with assign_add, then print its value.

index.py
import tensorflow as tf team_size = tf.Variable(5) team_size.assign_add(2) print(team_size.numpy())

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview