For this guide -- https://linuxacademy.com/cp/socialize/index/type/community_post/id/14209 Can someone clarify are we supposed to append the code below to the list_instances.py script? Or are they supposed to be two separate scripts?
ec2 = boto3.resource('ec2')
instance = ec2.create_instances(
When I append it, I get syntax errors but when I leave the list_instances.py script like this (screenshot), nothing happens (it doesn't list my instances).