Friday, September 5, 2025
HomeLanguagesPython | numpy.issctype() function

Python | numpy.issctype() function

numpy.issctype() function is used to determine whether the given object represents a scalar data-type.If the given object represents a scalar data-type it returns true, otherwise it returns false.

Syntax : numpy.issctype(rep)

Parameters :
rep : any input.

Return : [bool] Boolean result of check whether rep is a scalar dtype.

Code #1 :




# Python program explaining
# numpy.issctype() function
  
# importing numpy
import numpy as geek
  
# Checking if integers are scalar type
  
rep = geek.int64
  
# output boolean value
out_val = geek.issctype(rep)
print ("Are integers scalar: ", out_val) 


Output :

Are integers scalar:  True

 

Code #2 :




# Python program explaining
# numpy.issctype() function
  
# importing numpy
import numpy as geek
  
# Checking if list is scalar type
  
rep =[ 1, 4, 7]
  
# output boolean value
out_val = geek.issctype(rep)
print ("Is list scalar: ", out_val) 


Output :

Is list scalar:  False
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11863 POSTS0 COMMENTS
Shaida Kate Naidoo
6750 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6701 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS