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

Project 2: Constant Tensor Greeting

ML Engineer

Builds on these lessons

Current Task

Objective

tf.constant() creates an immutable tensor — TensorFlow's core data structure, similar to a NumPy array but built for GPU acceleration and automatic differentiation.

Task: create a constant string tensor and print it.

index.py
import tensorflow as tf greeting = tf.constant("Hello, TensorFlow!") print(greeting)

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

Live Preview
🖼️

Verify your code to see the preview