
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
![Write a python program to display the first
and the last names from the following list.
List is [ "Hulk", " James", "Bond", " Iron-man",
"sliviya", " Captain" , "vision"]](https://content.bartleby.com/qna-images/question/6840b0fa-541b-4347-a30e-11bc3a94ab02/c4576d42-75fe-4aca-ae15-44112fcae7d4/k1f65pl_thumbnail.jpeg)
Transcribed Image Text:Write a python program to display the first
and the last names from the following list.
List is [ "Hulk", " James", "Bond", " Iron-man",
"sliviya", " Captain" , "vision"]
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 2 images

Knowledge Booster
Similar questions
- Create a Python program that demonstrates the following: 1) Initialize the electronic list below in Python. electronics=[“Phone: $21.99”, “Computer: $599.29”, “Headphones: $21.35”] 2) Initialize a found variable to be False. 3) Input the user to enter an electronic. 4) Create for loop that iterates through the list of electronics. 5) Separate each citation and its corresponding number by splitting ":", the delimeter. Keep in mind, other electronics can be added to the list. 6) If the electronic is on the list, print the electronic name and its corresponding price. 7) Set the found variable to be True. 8) If the found variable is False, print that the item is not found.arrow_forwardUse Python 2 or 3 Create a Grocery Calculator. It will take in key-value pairs for items and their prices, and return the subtotal and total, and can print out the list for you for when you're ready to go to the store. 'Algorithm: Passes a key-value pair that are added into a dict. Script to return total, subtotal, and key-value pairs in a nicely formatted list.'''arrow_forwardPlease answer in pythonarrow_forward
- Write boolean expressions that correspond to the following english statements:a. The type of a float multiplied by an int is an intb. Adding list A = [4, 3, 2 7] and B = [6, 10, 9, 3, 8] results in a list of length 9.c. The remainder when 140 is divided by 3 is less than or equal to 3.d. 27 is divisible by 5 and 73 is a multiple of 219.e. The length of the string “Hello World” is greater than or equal to 10.arrow_forwardCode a Python List that displays the name of the months with 31 days only.arrow_forwardMust show it in Python: Please show step by step with comments. Please show it in simplest form. Please don't use any functions Please don't use any def func ()arrow_forward
- Create a program that has a function with two arguments: a list, and a number n. Pass a list of numbers into the function, along with an arbitrary number of your choosing, to display all numbers in the list greater than n. in pythonarrow_forwardplease code in pythonSuppose you record a list of birthdays for your classmates, recorded as month day tuples. An example is given below. # The 2nd to last tuple needs the int(2) in it so that it is uniquely stored in memory compared to (2,8)# Under the hood Python 3.7 changed how these are stored so (2,8) and (2,8) are stored in the same location# and then the algorithm below doesn't work dates = [(3,14),(2,8),(10,25),(5,17),(3,2),(7,25),(4,30),(8,7),(int(2),8),(1,22),(2, int(8))]You read about the famous birthday problem and you become interested in the number of pairs of classmates that share the same birthday. Below is an algorithm you write to do this. (Note: the is operator tests that two operands point to the same object) def birthday_original(dates_list): count = 0 for person_a in dates_list: for person_b in dates_list: # Make sure we have different people if person_a is person_b: continue # Check both…arrow_forwardplease write in python , thank u.arrow_forward
- phytonarrow_forwardPYTHON data = ['ZOOM earnings for Q1 are up 5%', 'Subscriptions at ZOOM have risen to all-time highs, boosting sales', "Got a new Mazda, ZOOM ZOOM Y'ALL!", 'I hate getting up at 8am FOR A STUPID ZOOM MEETING', 'ZOOM execs hint at a decline in earnings following a capital expansion program'] def scan_tweets(data):earnings_words = ['earnings', 'sales']positive_words = ['up', 'rise']negative_words = ['decline'] relevant_tweets = search_words(data=data, search_words=earnings_words) return positive_tweets, negative_tweets print(scan_tweets(data))arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education