I am not a native, but people told me that "shall" is out of date word so that's why people rarely use it.
but people use it to asking someone to do things with them, like
"Shall we dance?"
"Shall we go?"
,,, but as ur teacher said,, it's also correct to use it as alternatives of "will"
"I shall come to your party" "I will come to your party"