Computer Science, asked by bdsketch25, 2 months ago

Write a Python program that takes a list from the user. Then find the first even and first odd number in the list.
=====================================================
Sample Input1:
[1, 3, 5, 7, 4, 1, 6, 8]
Sample Output1:
First even:4 and First odd:1

Answers

Answered by amitbobbypathak
0

Answer:

String

JSON

List

Dictionary

Tuple

Sets

Collections

Heap queue algorithm

Array

Enum

Bisect

Condition Statements and Loops

Functions

Lambda

Map

Operating System Services

Date Time

Class

Search and Sorting

Linked List

Binary Search Tree

Recursion

Math

File I/O

Regular Expression

SQLite Database

CSV Read, Write

Itertools

Requests

▼Python GUI tkinter

tkinter Basic

tkinter widgets

▼Python NumPy

Python NumPy Home

▼Python GeoPy

Python GeoPy Home

▼BeautifulSoup

BeautifulSoup Home

▼Arrow Module

Arrow Home

▼Python Pandas

Python Pandas Home

▼Python Machine Learning

Machine Learning Home

▼Python Web Scraping

Web Scraping

▼Python Challenges

Challenges-1

▼Python Mini Project

Python Projects

▼Python Natural Language Toolkit

Python NLTK

▼Python Project

Novel Coronavirus (COVID-19)

..More to come..

Python Challenges: Exercises, Practice, Solution

Last update on July 24 2021 16:26:19 (UTC/GMT +8 hours)

 

Python Challenges - 1 [ 64 Challenges with solution]

[An editor is available at the bottom of the page to write and execute the scripts.]

1. Write a Python program to check if a given positive integer is a power of two. Go to the editor

Input : 4

Output : True

Click me to see the sample solution

2. Write a Python program to check if a given positive integer is a power of three. Go to the editor

Input : 9

Output : True

Click me to see the sample solution

3. Write a Python program to check if a given positive integer is a power of four. Go to the editor

Input : 4

Output : True

Click me to see the sample solution

4. Write a Python program to check if a number is a perfect square. Go to the editor

Input : 9

Output : True

Click me to see the sample solution

5. Write a Python program to check if an integer is the power of another integer.Go to the editor

Input : 16, 2

Output : True

Click me to see the sample solution

6. Write a Python program to check if a number is a power of a given base.Go to the editor

Input : 128,2

Output : True

Click me to see the sample solution

7. Write a Python program to find a m

Explanation:

Similar questions