0

In a Jupyter notebook I have this variable train_dataset.

I would like to see what is its class using this:

print train_dataset.__class__.__name__

However, I'm getting this error:

print train_dataset.__class__.__name__
                  ^
SyntaxError: invalid syntax

This print type(train_dataset) has the same result.

bsky
  • 19,326
  • 49
  • 155
  • 270

0 Answers0