What will be the output of the given snippet of code?
import re Flat = "Flat Number B101 # Oceanus Freesia" x = re.sub(r'#.*$', "", Flat) print ("Address : ", x)
Options
- Error
- (‘Address : ‘, ‘Flat Number B101 ‘)
- Flat Number B101 # Oceanus Freesia
- Address : Flat Number B101