Can anyone help me out here? I have little clue on a CS assignment but can't get started on it. Question states:

Write a program that generates a student's username and converts a score to a letter grade. The username consist of the initial of the name and the last three character of the ID. The grading scale is 900-100:A, 800-899:B, 700-799:C, 600-699:D, <600:F

Recommended Answers

All 2 Replies

name = "Smolski"
id = "12345678"

print(name[0])  # S
print(id[-3:])  # 678
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.