\documentclass{article}

\usepackage{graphicx}
\usepackage{setspace}
\usepackage{listings}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{float}
\usepackage[justification=centering]{caption}
\usepackage{subcaption}
\usepackage[margin=0.75in]{geometry}
\usepackage[parfill]{parskip} 
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{lipsum}

\usepackage{enumitem}

\titleformat{\subsection}[runin]{\normalfont \large \bfseries}
    {\thesubsection}{1em}{}

\renewcommand{\thesubsection}{\indent(\alph{subsection})}

    \definecolor{dkgreen}{rgb}{0,0.6,0}
    \definecolor{gray}{rgb}{0.5,0.5,0.5}
    \definecolor{mauve}{rgb}{0.58,0,0.82}


    \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
    \definecolor{mylilas}{RGB}{170,55,241}


    \lstset{language=Matlab,%
        %basicstyle=\color{red},
        breaklines=true,%
        morekeywords={matlab2tikz},
        keywordstyle=\color{blue},%
        morekeywords=[2]{1}, keywordstyle=[2]{\color{black}},
        identifierstyle=\color{black},%
        stringstyle=\color{mylilas},
        commentstyle=\color{mygreen},%
        showstringspaces=false,%without this there will be a symbol in the places where there is a space
        numbers=left,%
        numberstyle={\tiny \color{black}},% size of th_sume numbers
        numbersep=9pt, % this defines how far the numbers are from the text
        emph=[1]{for,end,break},emphstyle=[1]\color{red}, %some words to emphasise
        %emph=[2]{word1,word2}, emphstyle=[2]{style},    
        xleftmargin=5em
    }
    %\lstset{basicstyle=\small,
    %        keywordstyle=\color{mauve},
    %        identifierstyle=\color{dkgreen},
    %        stringstyle=\color{gray},
    %        numbers=left,
    %        xleftmargin=5em
    %        }


\title{ECE 456 - Problem Set 2}
\date{2021-03-01}
\author{David Lenfesty \\ lenfesty@ualberta.ca
    \and Phillip Kirwin \\ pkirwin@ualberta.ca}
    
\pagestyle{fancy}

\fancyhead[L]{\textbf{ECE 456} - Problem Set 2}
\fancyhead[R]{David Lenfesty and Phillip Kirwin}
\fancyfoot[C]{Page \thepage}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\footrulewidth}{1pt}

\begin{document}
    \doublespacing
    \maketitle
    \thispagestyle{empty}
    \singlespacing
    \newpage
    hello
    \section*{Problem 1}

        \begin{enumerate}[leftmargin=*,labelsep=1em,label=\bfseries(\alph*)] 
            \item %1a
            \lipsum[1]
            \item %1b
            \begin{enumerate}[leftmargin=2em,labelsep=1em,label=(\roman*)] 
                \item %1bi
                \lipsum[1]
                \item %1bii
                \lipsum[1]
            \end{enumerate}
            \item %1c
            \begin{enumerate}[leftmargin=2em,labelsep=1em,label=(\roman*)] 
                \item %1ci
                \lipsum[1]
                \item %1cii
                \lipsum[1]
                \item %1ciii
                \lipsum[1]
                \item %1civ
                \lipsum[1]
            \end{enumerate}
            \item %1d
            \begin{enumerate}[leftmargin=2em,labelsep=1em,label=(\roman*)] 
                \item %1di
                \lipsum[1]
                \item %1dii
                \lipsum[1]
                \item %1diii
                \lipsum[1]
                \item %1div
                \lipsum[1]
            \end{enumerate}

        \end{enumerate}


    \section*{Problem 2}

        \begin{enumerate}[leftmargin=*,labelsep=1em,label=\bfseries(\alph*)] 
           
            \item %2a
            \lipsum[1]
            \item %2b
            \lipsum[1]
            \item %1c
            \lipsum[1]
            \item %1d
            \lipsum[1]
            \item %1e
            \lipsum[1]
            \item %1f
            \lipsum[1]

        \end{enumerate}
        
    \section*{Problem 3}

        \begin{enumerate}[leftmargin=*,labelsep=1em,label=\bfseries(\alph*)] 
           
            \item %2a
            \lipsum[1]
            \item %2b
            \begin{enumerate}[leftmargin=2em,labelsep=1em,label=(\roman*)] 
                \item %1di
                \lipsum[1]
                \item %1dii
                \lipsum[1]
                \item %1diii
                \lipsum[1]
                \item %1div
                \lipsum[1]
                \item %1dv
                \lipsum[1]
                \item %1dvi
                \lipsum[1]
                \item %1dvii
                \lipsum[1]
            \end{enumerate}
            \item %1c
            \lipsum[1]
            \item %1d
            \lipsum[1]

        \end{enumerate}
        
    \section*{Problem 4}

        \begin{enumerate}[leftmargin=*,labelsep=1em,label=\bfseries(\alph*)] 
           
            \item %2a
            \lipsum[1]
            \item %2b
            \begin{enumerate}[leftmargin=2em,labelsep=1em,label=(\roman*)] 
                \item %1di
                \lipsum[1]
                \item %1dii
                \lipsum[1]
                \item %1diii
                \lipsum[1]
            \end{enumerate}

        \end{enumerate}
        
    
\end{document}