Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [split] No Error, and No Output
Hi Guys I am a beginner with Python, I am trying to execute a code, it says no error. But I am not getting the expected output. Can someone please help with it ?

students = []

def get_students_titlecas():
    for student in students:
        get_student_titlecase = student.title()
        return get_student_titlecase

def print_student_title_case():
    student_titlecase = get_students_titlecas()

def add_student(name, student_id=332):
    student = {"name": name, "student_id": student_id}

    student_list = get_students_titlecas()

    student_name = input("Enter the student name ")
    student_id = input("Enter the student ID ")

    add_student(student_name, student_id)


1) Don't hijack someone else's thread. Especially if your question is completely unrelated to theirs.
2) You've got some functions, but never call them. A function that ran without being called would be worthless.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [split] Name error ktck001122 3 683 Sep-02-2019, 01:50 AM
Last Post: ktck001122
  [split] Python beginner: Weird Syntax Error mnsaathvika 1 325 Jul-22-2019, 06:14 AM
Last Post: buran
  [split] Name error/is not defined rajkiran 1 768 Dec-27-2018, 06:47 PM
Last Post: micseydel
  [split] Python error jazzy 1 466 Dec-20-2018, 07:35 PM
Last Post: nilamo
  [split] Web Crawler Error takaa 1 1,691 Feb-17-2017, 11:54 AM
Last Post: wavic

Forum Jump:

Users browsing this thread: 1 Guest(s)