Skip to content

my code,please have a look #1

Description

@harshvardhansingh223

a=open('file.txt','r')
k=a.readlines()
k=sorted(k,key=len)
print('length of characters of longest line:',len(k[-1][:-1]))
print('longest line is:',k[-1][:-1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions