Halloween Sale: Flat 70% + Addl. 25% Off + 30 Days Extra Lab on all Courses | Use Coupon HS25 in Checkout | Offer Expires In

  Enroll Now

GitHub Project - Getting Started with Git - Create a File in Your Repository

Let's create a file in the repository.

INSTRUCTIONS
  • Make sure you are in ~/devops directory
  • Create an empty file called helloworld.py using touch helloworld.py
  • Add line print("Hello World") in helloworld.py and save the file
  • Please use the below command to add a line to the file

    echo 'print("Hello World")' > helloworld.py
    
  • Verify the file content using cat command

    cat helloworld.py
    
  • You can use nano or vi editor to edit the file content if you are comfortable with them using commands like nano helloworld.py or vi helloworld.py


No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...