Unable to Escape from Infinite Loop

I was working through module 2.7 and was running the node as it was outlined in the course
#! /usr/bin/env python

import rospy

rate = rospy.Rate(2)               # We create a Rate object of 2Hz
while not rospy.is_shutdown():     # Endless loop until Ctrl + C
   print("Help me Obi-Wan Kenobi, you're my only hope")
   rate.sleep()                    # We sleep the needed time to maintain the Rate fixed above
# This program creates an endless loop that repeats itself 2 times per second (2Hz) until somebody presses Ctrl + C
# in the Shell

However when I try to terminate the program with ctrl + c the print statement keeps looping. I’ve tried leaving the course, clearing cookies but nothing seems to help.

Any help would be appreciated!

Hi, welcome to the community!

You can also kill all your nodes by going to a different terminal and typing

rosnode kill -a