Login
Remember
Register
All Courses
Ask a Question
Questions
Unanswered
Ask a Question
Blog
Tutorials
Interview Questions
Back
Login
Explore Courses
Blog
Tutorials
Interview Questions
community
Python
Write a Python statement to create a list of 5...
Write a Python statement to create a list of 5 students in my class?
Write a Python statement to create a list of 5 students in my class?
0
votes
2
views
asked
Apr 28, 2021
in
Python
by
yello
(
150
points)
closed
Jun 16, 2023
by
Anamika Chakravarty
Could someone write a Python statement to create a list of 5 students in my class?
closed
python
Please
log in
to add a comment.
4
Answers
0
votes
answered
Jun 16, 2023
by
Anamika Chakravarty
(
19k
points)
Best answer
class_students = ["John", "Emily", "Michael", "Sophia", "Jacob"]
In this statement, a list named class_students is created, representing the names of five students in your class. You can modify the names in the list to match the actual students in your class.
Please
log in
to add a comment.
0
votes
answered
Jun 24, 2021
by
Yugesh
(
180
points)
To create a list of 5 students of your class, follow this reference:
Student Names: Denis, Tim, Cathy, Mark, Zack
Python Code to create a list:
Students=['Denis', 'Tim', 'Cathy', 'Mark', 'Zack']
Please
log in
to add a comment.
0
votes
answered
Jun 16, 2023
by
Balram111
(
25.7k
points)
Here's a Python statement to create a list of 5 students in your class:
students = ["John", "Emily", "Michael", "Sophia", "Jacob"]
In this example, a list named students is created, containing the names of 5 students in your class. You can modify the names in the list to match the actual students in your class.
Please
log in
to add a comment.
0
votes
answered
Jun 16, 2023
by
Similu
(
15.4k
points)
students = ["John", "Emily", "Michael", "Sophia", "Jacob"]
In this statement, a list called students is created, consisting of the names of five individuals who are part of your class. You can customize the names in the list to match the actual students present in your class.
Please
log in
to add a comment.
Related questions
0
votes
1
answer
How to write x^2 in my python code?
asked
Nov 30, 2020
in
Python
by
laddulakshana
(
16.4k
points)
python
symbolic-math
0
votes
3
answers
What does “e” in “1e-5” in Python language mean and what is the name of this notation?
asked
Oct 3, 2019
in
Python
by
Tech4ever
(
20.3k
points)
python
0
votes
1
answer
Python: Programming for everybody assignment 5.2
asked
Dec 15, 2020
in
Python
by
laddulakshana
(
16.4k
points)
python
numbers
variable-assignment
0
votes
1
answer
Program Allows User To Input 5 Student Names And Marks To Print A Report (loop)
asked
Dec 6, 2020
in
Python
by
laddulakshana
(
16.4k
points)
python
python-2
7
loops
input
0
votes
2
answers
Append integer to beginning of list in Python
asked
Jul 11, 2019
in
Python
by
ParasSharma1
(
19k
points)
python
list
variables
1.2k
questions
2.7k
answers
501
comments
693
users
All categories
Python
(132)
Java
(165)
SQL
(251)
Linux
(14)
Big Data Hadoop & Spark
(67)
Data Science
(75)
R Programming
(49)
C Programming
(7)
DevOps and Agile
(162)
AI and Deep Learning
(32)
Machine Learning
(9)
AWS
(54)
Azure
(26)
GCP
(4)
RPA
(2)
Selenium
(12)
Blockchain
(1)
Salesforce
(24)
Others
(12)
BI
(30)
Web Technology
(57)
Digital Marketing
(3)
Technology Trends
(6)
...