1: Command Line Python(Challenge: Working with the Command Line)

In the past few missions, you learned how to navigate the filesystem, create and modify files, and work with Python on the command line. You learned that it isn't enough to just know how to program in Python -- you also have to know how to modify and execute Python programs on your computer.

In this challenge, you'll pull all of the concepts from the past few missions together to create and run a Python script on the command line. Here's a rough outline of what you'll do:

  • Create a Python script.
  • Create a virtual environment.
  • Change file permissions.
  • Execute a Python script from the command line.

Instructions

  • Familiarize yourself with the current folder.
    • Change out of the current directory, then back in.
    • Print the path of the current folder to the standard output

/home/dq$ cd ..                                                                                                                   
/home$ cd ~                                                                     
/home/dq$ pwd                                                                   
/home/dq                                                                        
/home/dq$                                                                        
           

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值