Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a python program that asks the user the following question: What year student are you? If they answer 1: Print Welcome to York

1. Write a python program that asks the user the following question:

What year student are you?

  • If they answer 1:
  1. Print "Welcome to York University!"

  • If they answer 2:
  1. Print "Almost halfway done!"

  • If they answer 3:
  1. Print "Just a little more!"

  • If they answer 4:
  1. Print "Final stretch!"

  • If they answer anything else:
  1. Print "Please answer with a number between 1-4"

2. Write a python program that will take an input from the user and check if the input is a string or integer.

  • Example 1
  1. Input: Give an example input. 123
  2. Output: Your input was an integer.

  • Example 2
  1. Input: Give an example input. Hello World
  2. Output: Your input was a string

Help would be appreciated, thank you.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

What is (are) the invoice number(s) of the duplicate payments?

Answered: 1 week ago