Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 1 : Print hello world In Task 2 : Read in two values ( user input ) , convert to integers, and then print
Task : Print hello world
In
Task : Read in two values user input convert to integers, and then print the sum
In :
Note: typevariable lets you check the data type of variable.
In :
Note: In jupyter notebooks, you can also display values without the print shown below
In :
Question: What prints if you don't convert to integers first?
In :
In :
Task : Create a function called "search"
This function should take in two string values lets call them a and Both a and should be set to all lowercase. Then search for the substring in
a It should return the index of the found substring, or if not found.
In :
Here are some examples to test
In : searchHello world', 'hello'
In :
In : searchHello world',
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started