# 2)Interactive

# IPython vs Python in Python

# A sample interactive session:
# >>> 5
# 5
# >>> print(5*7)
# 35
# >>> "hello" * 4
# 'hellohellohellohello'
# >>> "hello".__class__
# <type 'str'>


# Interactive mode
# python -i temp.py
# 2)Interactive

# IPython vs Python in Python

# A sample interactive session:
# >>> 5
# 5
# >>> print(5*7)
# 35
# >>> "hello" * 4
# 'hellohellohellohello'
# >>> "hello".__class__
# <type 'str'>


# Interactive mode
# python -i temp.py
# 2)Interactive # IPython vs Python in Python # A sample interactive session: # >>> 5 # 5 # >>> print(5*7) # 35 # >>> "hello" * 4 # 'hellohellohellohello' # >>> "hello".__class__ # <type 'str'> # Interactive mode # python -i temp.py