Worksheet 5 - Python Introduction: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

27 October 2024

  • curprev 09:5009:50, 27 October 2024EdmondLascaris talk contribs 5,829 bytes +1,531 No edit summary
  • curprev 09:3709:37, 27 October 2024EdmondLascaris talk contribs 4,298 bytes +56 No edit summary
  • curprev 08:0408:04, 27 October 2024EdmondLascaris talk contribs 4,242 bytes +4,242 Created page with "=Printing Output= <syntaxhighlight lang="python"> # Basic printing print("Hello, World!") </syntaxhighlight> Task: Modify the code to print a personal greeting like "Hello, [Your Name]!" Additional Challenge: Ask the user for their name and greet them personally. Bonus Challenge: Modify the program to greet two different names in separate lines. =Input from the User= python Copy code # Basic input name = input("Enter your name: ") print("Hello,", name, "!") Task: As..."