Quick actions

cmd+k|ctrl+k

Navigation

Languages

Python_1

Snippet info

Language

Python

Visibility

public

Author

doruk.ayd20

Created

2025-01-02T16:33:08.471265Z

Updated

2025-01-02T18:34:51.326939Z



  #booleans video = 40
#print(bool(1))

 #exercise: type conversion
# birth_year = input('What year were you born? ')
# current_year = 2025
# age = current_year - int(birth_year)

# print(f'You are {age} years old')

#exercise: password checker
username = input('What is your username?\t')
password = input('Type your password\t')

password_length = len(password)
hide_password = password_length * '*'

print(f'{username}, your password {hide_password} is {password_length} letters long')

INFO