input: Write a function to create a Bash script that installs a specified version of Python. The function should take the version number as a parameter, download the source, configure, compile, and install it.
  assert install_python_version('3.8.5')=='#!/bin/bash\n\n# Download latest version of Python\ncurl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz\n\n# Extract the tgz file\ntar -xzf Python-3.8.5.tgz\n\n# Move into the Python directory\ncd Python-3.8.5\n\n# Run the configure script\n./configure\n\n# Compile and install\nmake\nmake install'
  assert install_python_version('3.9.0')=='#!/bin/bash\n\n# Download latest version of Python\ncurl -O https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz\n\n# Extract the tgz file\ntar -xzf Python-3.9.0.tgz\n\n# Move into the Python directory\ncd Python-3.9.0\n\n# Run the configure script\n./configure\n\n# Compile and install\nmake\nmake install'
  assert install_python_version('')==''
output: def install_python_version(version):
      if not version:
          return ''
      return f'''#!/bin/bash
  
  # Download latest version of Python
  curl -O https://www.python.org/ftp/python/{version}/Python-{version}.tgz
  
  # Extract the tgz file
  tar -xzf Python-{version}.tgz
  
  # Move into the Python directory
  cd Python-{version}
  
  # Run the configure script
  ./configure
  
  # Compile and install
  make
  make install'''