Advertisement
horozov86

class_Song

Jun 28th, 2023
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. class Song:
  2.     def __init__(self, name, length, single):
  3.         self.name = name
  4.         self.length = length
  5.         self.single = single
  6.        
  7.     def get_info(self):
  8.         return f"{self.name} - {self.lengthh}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement