A gas has NEITHER a definite volume NOR shape. At the microscopic level, gases particles are very far apart. These particles move fast and independently of each other. Such properties allow a gas to expand inside its container.
Thumbnail: Drifting smoke particles provide clues to the movement of the surrounding gas. Image used with permission (Public Domain; Macluskie).