top of page
Search

Create a simple Python Student app

Writer's picture: Abhinaw TripathiAbhinaw Tripathi

Let's create an app where user will provide the student name and Student I'd from the console. eg: student.py students =[] def get_students_titlecase():        students_titlecase = []         for student in students:            students_titlecase = student["name"].title() def print_students_titlecase():        students_titlecase = get_students_titlecase()        print(students_titlecase) def add_student(name,student_id=1):         student ={"name:name", "student_id": student_id}          students.append(student) student_list = get_students_titlecase() student_name=input("Enter student name: ") student_id= input("Enter student ID: ") add_student(student_name,student_id) print_students_titlecase() So in console you have to something like this and output will be Enter student name: Abhinaw Enter student ID:3455 Abhinaw this is very simple Python app taking console input and also we can modify the program. 

15 views0 comments

Recent Posts

See All

Lambda Functions in Python

So Lambda Functions are just an anonymous function.they are very simple just saves your space and time.they are useful in case of higher ...

Generator Function - Yield Python

So Yield is a keyword.first let's take an example. student = [] def read_file(): try: f=open("students.txt","r") for student in...

Opening,Reading and Writing Python

Let's save our data in a file and read from that file again when we re-open our app. So let's take an example: Let's take an example: ...

© 2016 by Abhinav Tripathi

  • Facebook Clean Grey
  • Twitter Clean Grey
bottom of page