From 8c88db94efa55524ba8189a9ebf20c8f14d4570b Mon Sep 17 00:00:00 2001 From: azamrtbv <71893574+Muratbaev@users.noreply.github.com> Date: Thu, 6 Nov 2025 18:14:36 +0000 Subject: [PATCH] changes --- First_programs/yyy.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 First_programs/yyy.py diff --git a/First_programs/yyy.py b/First_programs/yyy.py new file mode 100644 index 0000000..6dc7699 --- /dev/null +++ b/First_programs/yyy.py @@ -0,0 +1,25 @@ +def main(): # Wrapper function + + name = input('What is your name? ') # Asks for a string - name + + print('Hello ', name, '! How are you?', sep='', end='\n') + + # PRINT FUNCTION + + # SEP + # The 'sep' argument in Python 3 will seperate the text + # with the given character, since now I want an exclamation mark + # after 'name' I don't like to have any space between that, + # so I set 'sep' to be nothing. + + # END + # The 'end' argument is what the program prints + # after the print function. + # By default is '\n' (newline) + # so you don't need to put that there, however + # there are some cases when you don't want a newline after + # every print function, so this is good to know. + + +if __name__ == '__main__': + main() \ No newline at end of file