Created
March 16, 2020 10:22
-
-
Save mayankdawar/c070852f054da5bcdacd73d8317c822d to your computer and use it in GitHub Desktop.
Find the number of lines in the file, travel_plans2.txt, and assign it to the variable num_lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Find the number of lines in the file, travel_plans2.txt, and assign it to the variable num_lines. | |
file = open("travel_plans2.txt","r") | |
count = file.readlines() | |
num_lines = len(count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment